All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] oeqa.buildperf: correct globalres time format
@ 2016-09-05 18:33 Markus Lehtonen
  0 siblings, 0 replies; only message in thread
From: Markus Lehtonen @ 2016-09-05 18:33 UTC (permalink / raw)
  To: openembedded-core

Always use two digits for (integer part of) seconds, i.e. show '1:02.34'
instead of '1:2.34'.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
---
 meta/lib/oeqa/buildperf/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index be3a946..2325cd1 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -404,7 +404,7 @@ class BuildPerfTestCase(unittest.TestCase):
 
         # Append to 'times' array for globalres log
         e_sec = etime.total_seconds()
-        self.times.append('{:d}:{:02d}:{:.2f}'.format(int(e_sec / 3600),
+        self.times.append('{:d}:{:02d}:{:05.2f}'.format(int(e_sec / 3600),
                                                       int((e_sec % 3600) / 60),
                                                        e_sec % 60))
 
-- 
2.6.6



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-05 18:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-05 18:33 [PATCH] oeqa.buildperf: correct globalres time format Markus Lehtonen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.