summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-09-05 21:33:56 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-06 10:24:00 +0100
commit55bb6816aca39bfa25d4f7e2158a57a5f0ac1cca (patch)
treeda9d11ac2feb6dee7ec2665d92ddb0b6a5280826
parentfc62f54e3d788cc79fd27664f05db7efccef23ab (diff)
downloadopenembedded-core-55bb6816aca39bfa25d4f7e2158a57a5f0ac1cca.tar.gz
openembedded-core-55bb6816aca39bfa25d4f7e2158a57a5f0ac1cca.tar.bz2
openembedded-core-55bb6816aca39bfa25d4f7e2158a57a5f0ac1cca.zip
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'. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/buildperf/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index be3a946ddf..2325cd1d6b 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))