1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Feature #1285: Change output style for time periods, e.g. 05h30m instead of 05:30

(cherry picked from commit 2c41b2f0dfd0c22ce4e4851050d2f8e319f3cbeb)
This commit is contained in:
Carlos Martín 2012-07-05 17:21:45 +02:00
parent 1d1fec2819
commit 996b996201

View File

@ -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