print every 100 bundles

This commit is contained in:
Joe Lothan 2026-05-20 10:17:35 -04:00
parent 426abe1c90
commit 0efec72e45

View file

@ -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)
} }