From ecea61f7cc1dc7decb9499d4815c1f23517d9e43 Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Tue, 16 Jun 2020 17:51:26 -0400 Subject: [PATCH] Updated to fix formatting error in getString --- src/Stopwatch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Stopwatch.rs b/src/Stopwatch.rs index 9c27641..2bf83e4 100644 --- a/src/Stopwatch.rs +++ b/src/Stopwatch.rs @@ -88,12 +88,12 @@ impl Stopwatch{ timeRes += 1; } //Check if the duration needs reduced to minutes - if(duration >= 1000.0){ + if(duration >= 120.0){ duration /= 60.0; timeRes = TimeResolution::MINUTE as i32; } //Check if the duration needs reduced to hours - if(duration >= 1000.0){ + if(duration >= 60.0){ duration /= 60.0; timeRes = TimeResolution::HOUR as i32; }