From 8a704e7b12b132d4e161bcc49f009a05350b98ca Mon Sep 17 00:00:00 2001 From: John Kacur Date: Fri, 12 Oct 2018 00:49:33 +0200 Subject: [PATCH] rteval: rtevalReport.py: Fix time format in report Another case where python3 division generates floats This can be fixed by converting the result to an int Signed-off-by: John Kacur --- rteval/rtevalReport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rteval/rtevalReport.py b/rteval/rtevalReport.py index 55594ae8f0bc..a18dd41b36fc 100644 --- a/rteval/rtevalReport.py +++ b/rteval/rtevalReport.py @@ -48,9 +48,9 @@ class rtevalReport(object): duration = datetime.now() - measure_start seconds = duration.seconds - hours = seconds / 3600 + hours = int(seconds / 3600) if hours: seconds -= (hours * 3600) - minutes = seconds / 60 + minutes = int(seconds / 60) if minutes: seconds -= (minutes * 60) # Start new XML report -- 2.14.4