jprochaz reported that it should be hours*3600
I also changed one of the commit headers related to regression-tests so
that it fits with the others
ignore this patchset, sending v2
On Fri, Feb 20, 2015 at 04:21:11PM +0100, olichtne(a)redhat.com wrote:
From: Ondrej Lichtner <olichtne(a)redhat.com>
When calculating the remaining seconds of the total test time I didn't
subtract seconds for the hours. This commit fixes that.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/NetTestResultSerializer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Controller/NetTestResultSerializer.py
b/lnst/Controller/NetTestResultSerializer.py
index 62d4e43..4ac45dc 100644
--- a/lnst/Controller/NetTestResultSerializer.py
+++ b/lnst/Controller/NetTestResultSerializer.py
@@ -129,7 +129,7 @@ class NetTestResultSerializer:
days = dif_time.days
hours = dif_time.seconds/3600
minutes = dif_time.seconds/60 - hours*60
- seconds = dif_time.seconds - minutes*60
+ seconds = dif_time.seconds - hours*60 - minutes*60
logging.info("Total test time: %d days, %d hours, %d minutes, "\
"%d seconds" % (days, hours, minutes, seconds))
--
2.1.0