[Bugfix] Fix seconds value returned by get_hms()

This commit is contained in:
Gergely Polonkai 2022-05-24 11:49:36 +02:00
parent 8968507d29
commit d9017d447a
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

View File

@ -90,7 +90,7 @@ pub fn get_hms(config: &Option<Config>, which: DayPart) -> (u8, u8, u8) {
let hours = seconds / 3600; let hours = seconds / 3600;
seconds -= hours * 3600; seconds -= hours * 3600;
let minutes = seconds / 60; let minutes = seconds / 60;
seconds -= hours * 60; seconds -= minutes * 60;
(hours as u8, minutes as u8, seconds as u8) (hours as u8, minutes as u8, seconds as u8)
} }