Set maximum daily total to 24.0

This commit is contained in:
Trey Blancher 2022-10-27 08:42:13 -04:00
parent 6cfc449c24
commit 1ee2c1a3bf
1 changed files with 3 additions and 0 deletions

View File

@ -131,6 +131,9 @@ fn main() {
_ => panic!("Error reading file! Error: {}", error)
}
};
if gtoth > 24.0 {
gtoth = 24.0;
};
// print the output
println!("{}", format!("{:.2}", gtoth));
println!();