1
mirror of https://github.com/rclone/rclone synced 2024-11-27 05:23:40 +01:00

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

This commit is contained in:
Nick Craig-Wood 2018-09-04 14:39:48 +01:00
parent 37b2754f37
commit 4ca26eb38c

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)