mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-18 02:42:54 +09:00
Feature #1285: Change output style for time periods, e.g. 05h30m instead of 05:30
This commit is contained in:
1 parent
2bb052b12d
commit
2c41b2f0df
1 file changed
+2
-2
@@ -376,9 +376,9 @@ EOT
|
||||
days, hours=hours.divmod(24)
|
||||
|
||||
if print_seconds
|
||||
"%3dd %02d:%02d:%02d" % [days, hours, minutes, seconds]
|
||||
"%3dd %02dh%02dm%02ds" % [days, hours, minutes, seconds]
|
||||
else
|
||||
"%3dd %02d:%02d" % [days, hours, minutes]
|
||||
"%3dd %02dh%02dm" % [days, hours, minutes]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user