Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

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

Nick Craig-Wood4ca26eb38cf9
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)