Skip to contentSkip to conversation

oeqa.buildperf: correct globalres time format

PATCH New Markus Lehtonen 1 participant 1 message Sep 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oeqa.buildperf: correct globalres time format

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

---
 meta/lib/oeqa/buildperf/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/buildperf/base.py +1 -1
index be3a946..2325cd1 100644
@@ -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))
 
Signature · 1 line
2.6.6