cmd: fix crash with --progress and --stats 0 #2501

This commit is contained in:
Nick Craig-Wood committed 2018-09-07 15:45:09 +01:00
1 parent 6396872d75
commit 0c11eec70e
1 file changed
+1 -1
+1 -1
View File
@@ -38,7 +38,7 @@ func startProgress() chan struct{} {
}
go func() {
progressInterval := defaultProgressInterval
if ShowStats() {
if ShowStats() && *statsInterval > 0 {
progressInterval = *statsInterval
}
ticker := time.NewTicker(progressInterval)