From 3a878a35926c8c2153dfe9b4dff9e09fa3e4b6f0 Mon Sep 17 00:00:00 2001
From: Robin Carlsson <robin.c.carlsson@utu.fi>
Date: Tue, 17 Oct 2023 01:26:49 +0000
Subject: [PATCH] 4: Rounding

---
 ida_selenium.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ida_selenium.py b/ida_selenium.py
index 60aa305..b39dc4b 100644
--- a/ida_selenium.py
+++ b/ida_selenium.py
@@ -446,12 +446,12 @@ with open(sys.argv[1], encoding="utf-8") as pages_to_test:
         #    # empty object to follow the last comma and a square bracket to close the array
         #    f.write("{}]")
         
-        print("Seconds taken for page: " + str( (time.time() - page_start_time) ) )
+        print("Seconds taken for page: " + str( round((time.time() - page_start_time)) ) )
 
 
 print("\033[96m \n-- TEST END --\n\033[00m")
 # how long the whole thing took, sleeps included
-print("Minutes taken for test: " + str( (time.time() - starttime)/60 ) )
+print("Minutes taken for test: " + str( round((time.time() - starttime)/60) ) )
 tab.stop()
 driver.quit()
 
-- 
GitLab