Skip to content

Commit 91089be

Browse files
Update main.go
1 parent 56aa18f commit 91089be

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,8 @@ func validateAll(lines []string) []configResult {
777777

778778
stopBar := make(chan struct{})
779779
go func() {
780-
barWidth := 25
781-
tick := time.NewTicker(200 * time.Millisecond)
780+
const barWidth = 25
781+
tick := time.NewTicker(300 * time.Millisecond)
782782
defer tick.Stop()
783783
for {
784784
select {
@@ -797,8 +797,8 @@ func validateAll(lines []string) []configResult {
797797
filled = barWidth
798798
}
799799
bar := strings.Repeat("█", filled) + strings.Repeat("░", barWidth-filled)
800-
fmt.Printf("\r [%s] %5.1f%% tested=%-7d ✓%-6d ✗%-6d",
801-
bar, pct, tested, passed, failed)
800+
line := fmt.Sprintf("\r [%s] %5.1f%% tested=%-7d ✓%-6d ✗%-6d ", bar, pct, tested, passed, failed)
801+
os.Stdout.WriteString(line)
802802
}
803803
}
804804
}()

0 commit comments

Comments
 (0)