Updated to fix formatting error in getString

This commit is contained in:
2020-06-16 17:51:26 -04:00
parent 575fcfe79c
commit ecea61f7cc

View File

@@ -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;
}