[gnome-continuous-yocto/gnomeostree-3.28-rocko: 2286/8267] oeqa.buildperf: correct globalres time format
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 2286/8267] oeqa.buildperf: correct globalres time format
- Date: Sat, 16 Dec 2017 23:01:02 +0000 (UTC)
commit f7ca989ddc6d470429b547647d3fbaad83a982d9
Author: Markus Lehtonen <markus lehtonen linux intel com>
Date: 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'.
(From OE-Core rev: 55bb6816aca39bfa25d4f7e2158a57a5f0ac1cca)
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 | 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 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]