[OE-core] [PATCH] oeqa.buildperf: correct globalres time format
Markus Lehtonen
markus.lehtonen at linux.intel.com
Mon Sep 5 18:33:56 UTC 2016
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 at 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
More information about the Openembedded-core
mailing list