From 4ca26eb38cf9befdabc6b6a68a7a320fa247a21f Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 4 Sep 2018 14:39:48 +0100 Subject: [PATCH] cmd: fix crash with --progress and --stats 0 #2501 --- cmd/progress.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/progress.go b/cmd/progress.go index a76acf882..d2873f942 100644 --- a/cmd/progress.go +++ b/cmd/progress.go @@ -38,7 +38,7 @@ func startProgress() chan struct{} { } go func() { progressInterval := defaultProgressInterval - if ShowStats() { + if ShowStats() && *statsInterval > 0 { progressInterval = *statsInterval } ticker := time.NewTicker(progressInterval)