[oe-commits] [openembedded-core] 08/08: oeqa.buildperf: correct globalres time format
git at git.openembedded.org
git at git.openembedded.org
Tue Sep 6 09:24:47 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 55bb6816aca39bfa25d4f7e2158a57a5f0ac1cca
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Mon Sep 5 21:33:56 2016 +0300
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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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))
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list