mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-11 06:18:11 +03:00
Process list: TIME+: display minutes in two digits (hh:mm:ss format only)
Display a leading zero if the number is only one digit long (00-59). Display minutes in one digit otherwise (mm:ss.ms format, 0-59).
This commit is contained in:
parent
a88fb52b8d
commit
afa43acdd7
@ -249,7 +249,7 @@ class Plugin(GlancesPlugin):
|
||||
if hours:
|
||||
msg = '{0:>4}h'.format(hours)
|
||||
ret.append(self.curse_add_line(msg, decoration='CPU_TIME', optional=True))
|
||||
msg = '{0}:{1}'.format(minutes, seconds)
|
||||
msg = '{0}:{1}'.format(str(minutes).zfill(2), seconds)
|
||||
else:
|
||||
msg = '{0:>4}:{1}.{2}'.format(minutes, seconds, microseconds)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user