print every 100 bundles
This commit is contained in:
parent
426abe1c90
commit
0efec72e45
1 changed files with 10 additions and 10 deletions
|
|
@ -28,15 +28,15 @@ type Config struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Stats struct {
|
type Stats struct {
|
||||||
TotalHosts int
|
TotalHosts int
|
||||||
HostsWithIcon int
|
HostsWithIcon int
|
||||||
HostsNoIcon int
|
HostsNoIcon int
|
||||||
BundlesCreated int
|
BundlesCreated int
|
||||||
ConvertErrors atomic.Int64
|
ConvertErrors atomic.Int64
|
||||||
BundledWithIcon atomic.Int64
|
BundledWithIcon atomic.Int64
|
||||||
BundledNoIcon atomic.Int64
|
BundledNoIcon atomic.Int64
|
||||||
TotalBytes int64
|
TotalBytes int64
|
||||||
StartedAt time.Time
|
StartedAt time.Time
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
@ -230,7 +230,7 @@ func main() {
|
||||||
|
|
||||||
n := bundlesCreated.Add(1)
|
n := bundlesCreated.Add(1)
|
||||||
estimatedTotal := (totalHosts + cfg.EntriesPerBundle - 1) / cfg.EntriesPerBundle
|
estimatedTotal := (totalHosts + cfg.EntriesPerBundle - 1) / cfg.EntriesPerBundle
|
||||||
if n%500 == 0 {
|
if n%100 == 0 {
|
||||||
fmt.Printf(" %d/%d bundles\n", n, estimatedTotal)
|
fmt.Printf(" %d/%d bundles\n", n, estimatedTotal)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue