]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa.buildperf: correct globalres time format
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 5 Sep 2016 18:33:56 +0000 (21:33 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 6 Sep 2016 09:24:00 +0000 (10:24 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/buildperf/base.py

index be3a946ddf2f55d859ca9bf9a44422c412a71902..2325cd1d6be1516799dfb0f1d18cd11fbece045e 100644 (file)
@@ -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))