fs: fix bwlimit: correctly report minutes
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
This commit is contained in:
committed by
Nick Craig-Wood
parent
2e9e4a47a2
commit
4553c3de7b
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user