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-05 22:41:03 +0100 |
commit | 02d9f0df0ddc9ed192b14e727fac30686af296fc (patch) | |
tree | 946f0bced0890445a157e2f17d8453f07476aebe | |
parent | c0953c1bd281a605236734715c0907cdd6097a5b (diff) | |
download | openembedded-core-contrib-02d9f0df0ddc9ed192b14e727fac30686af296fc.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'.
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.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): # 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)) |