mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 12:56:36 +02:00
cmd: fix crash with --progress and --stats 0 #2501
This commit is contained in:
parent
37b2754f37
commit
4ca26eb38c
@ -38,7 +38,7 @@ func startProgress() chan struct{} {
|
||||
}
|
||||
go func() {
|
||||
progressInterval := defaultProgressInterval
|
||||
if ShowStats() {
|
||||
if ShowStats() && *statsInterval > 0 {
|
||||
progressInterval = *statsInterval
|
||||
}
|
||||
ticker := time.NewTicker(progressInterval)
|
||||
|
Loading…
x
Reference in New Issue
Block a user