Commit Diff
Diff:
19ee7f3ad418441da1dcc2e11913e71aacdd2467
86d7c366a9239711ff4fe45e9657f8ff2456e4fd
Commit:
86d7c366a9239711ff4fe45e9657f8ff2456e4fd
Tree:
0695748c2bec4d7fd5b96d6fdd5045460c82779e
Author:
Omar Polo <op@omarpolo.com>
Date:
Tue Aug 23 08:04:21 2022 UTC
Message:
amused-monitor: fix sprintf error for tracks hours long
commit - 19ee7f3ad418441da1dcc2e11913e71aacdd2467
commit + 86d7c366a9239711ff4fe45e9657f8ff2456e4fd
blob - 4e0e873afc96128122c8ccd0b9dbd76d9cfad303
blob + 7f589f9d06806f63ad7f6de04135b2b5d75e0331
--- contrib/amused-monitor
+++ contrib/amused-monitor
@@ -120,7 +120,7 @@ sub showtime {
if ($seconds > 3600) {
my $hours = int($seconds / 3600);
$seconds -= $hours * 3600;
- $str = sprintf("%02:", $hours);
+ $str = sprintf("%02d:", $hours);
}
my $minutes = int($seconds / 60);
Omar Polo