diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-09-05 21:33:56 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-06 10:24:04 +0100 |
commit | f7ca989ddc6d470429b547647d3fbaad83a982d9 (patch) | |
tree | fd4451c94c305113019fbc9e7db2333785b8955c /meta/lib | |
parent | 1f706698cd9a994400d894a23af8c16c9be0fc58 (diff) | |
download | poky-f7ca989ddc6d470429b547647d3fbaad83a982d9.tar.gz |
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'.
(From OE-Core rev: 55bb6816aca39bfa25d4f7e2158a57a5f0ac1cca)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 2 |
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): | |||
404 | 404 | ||
405 | # Append to 'times' array for globalres log | 405 | # Append to 'times' array for globalres log |
406 | e_sec = etime.total_seconds() | 406 | e_sec = etime.total_seconds() |
407 | self.times.append('{:d}:{:02d}:{:.2f}'.format(int(e_sec / 3600), | 407 | self.times.append('{:d}:{:02d}:{:05.2f}'.format(int(e_sec / 3600), |
408 | int((e_sec % 3600) / 60), | 408 | int((e_sec % 3600) / 60), |
409 | e_sec % 60)) | 409 | e_sec % 60)) |
410 | 410 | ||