-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.go
24 lines (21 loc) · 816 Bytes
/
stats.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main
import (
"fmt"
)
// Processing statistics.
type stats struct {
examined int32 // Total number of files examined.
withCamera int32 // Number of files with camera details in Exif.
warnings int32 // Number of files with a warning printed to output
inCat int32 // Number of files already in a relevant category.
populated int32 // Number of files skipped because of catFileLimit.
edited int32 // Number of files edited.
}
func (s stats) print() {
fmt.Println("Total files examined: ", s.examined)
fmt.Println("Files with camera details in Exif: ", s.withCamera)
fmt.Println("Files skipped due to CatFileLimit: ", s.populated)
fmt.Println("Files with warnings printed: ", s.warnings)
fmt.Println("Files already categorised: ", s.inCat)
fmt.Println("Files edited: ", s.edited)
}