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 {
TotalHosts int
HostsWithIcon int
HostsNoIcon int
BundlesCreated int
ConvertErrors atomic.Int64
BundledWithIcon atomic.Int64
BundledNoIcon atomic.Int64
TotalBytes int64
StartedAt time.Time
TotalHosts int
HostsWithIcon int
HostsNoIcon int
BundlesCreated int
ConvertErrors atomic.Int64
BundledWithIcon atomic.Int64
BundledNoIcon atomic.Int64
TotalBytes int64
StartedAt time.Time
}
func main() {
@ -230,7 +230,7 @@ func main() {
n := bundlesCreated.Add(1)
estimatedTotal := (totalHosts + cfg.EntriesPerBundle - 1) / cfg.EntriesPerBundle
if n%500 == 0 {
if n%100 == 0 {
fmt.Printf(" %d/%d bundles\n", n, estimatedTotal)
}