From 996b99620156ae53acf7426858bf6d00104bb583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Thu, 5 Jul 2012 17:21:45 +0200 Subject: [PATCH] Feature #1285: Change output style for time periods, e.g. 05h30m instead of 05:30 (cherry picked from commit 2c41b2f0dfd0c22ce4e4851050d2f8e319f3cbeb) --- src/cli/one_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/one_helper.rb b/src/cli/one_helper.rb index 8123be6903..0eb892d501 100644 --- a/src/cli/one_helper.rb +++ b/src/cli/one_helper.rb @@ -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