mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Feature #1285: Change output style for time periods, e.g. 05h30m instead of 05:30
(cherry picked from commit 2c41b2f0df)
This commit is contained in:
1 parent
1d1fec2819
commit
996b996201
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