cmd: fix crash with --progress and --stats 0 #2501
This commit is contained in:
parent
37b2754f37
commit
4ca26eb38c
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ func startProgress() chan struct{} {
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
progressInterval := defaultProgressInterval
|
progressInterval := defaultProgressInterval
|
||||||
if ShowStats() {
|
if ShowStats() && *statsInterval > 0 {
|
||||||
progressInterval = *statsInterval
|
progressInterval = *statsInterval
|
||||||
}
|
}
|
||||||
ticker := time.NewTicker(progressInterval)
|
ticker := time.NewTicker(progressInterval)
|
||||||
|
|
Loading…
Add table
Reference in a new issue