diff options
-rwxr-xr-x | archey3 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -254,8 +254,8 @@ class uptimeDisplay(display): hour = int(fuptime / 3600) fuptime = fuptime % 3600 minute = int(fuptime / 60) - uptime = '{daystring}{hours}:{mins}'.format( - daystring='{days} day{s}, '.format(days=day, s=int(day) > 1) if day else '', + uptime = '{daystring}{hours}:{mins:02d}'.format( + daystring='{days} day{s}, '.format(days=day, s='s' if day > 1 else '') if day else '', hours = hour, mins = minute ) return "Uptime", uptime |