diff --git a/rust/chug/src/main.rs b/rust/chug/src/main.rs index 68400fc..cd03bce 100644 --- a/rust/chug/src/main.rs +++ b/rust/chug/src/main.rs @@ -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!();