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

fs: fix bwlimit: correctly report minutes

Mikel Olasagasti Uranga4553c3de7ba0
diff --git a/fs/bwtimetable.go b/fs/bwtimetable.go
index 52e84d3cb..3b25adb7b 100644
--- a/fs/bwtimetable.go
+++ b/fs/bwtimetable.go
@@ -97,7 +97,7 @@ func validateHour(HHMM string) error {
return fmt.Errorf("invalid minute in time specification: %q: %v", HHMM, err)
}
if mm < 0 || mm > 59 {
- return fmt.Errorf("invalid minute (must be between 00 and 59): %d", hh)
+ return fmt.Errorf("invalid minute (must be between 00 and 59): %d", mm)
}
return nil
}