@@ 113,7 113,7 @@ fn run() -> Result<(), failure::Error> {
let loadstr =
&info.components.component[0].variables.variable[0]
.value
- .trim_right_matches(" kW");
+ .trim_end_matches(" kW");
match loadstr.parse::<f64>() {
Ok(kilowatts) => {
// Sanity check: 60 kW would be 250 amps