Merge pull request #4 from kompass/librespot-update

Fix hrs and min printing
This commit is contained in:
grufkork 2024-12-30 13:38:11 +01:00 committed by GitHub
commit 2ab4b57b4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -334,7 +334,7 @@ async fn start() {
}
fn secs_to_hrs_min_sec(secs: i32) -> String {
format!("{:0>2}:{:0>2}:{:0>2}", secs / 360, secs / 60, secs % 60)
format!("{:0>2}:{:0>2}:{:0>2}", secs / 3600, (secs % 3600) / 60, secs % 60)
}
// !cargo b --release