Set maximum daily total to 24.0
This commit is contained in:
parent
6cfc449c24
commit
1ee2c1a3bf
|
@ -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!();
|
||||
|
|
Loading…
Reference in New Issue