removed incorrect replace

This commit is contained in:
Nickiel12 2023-08-26 07:40:57 -07:00
parent 3edf4aa95a
commit e4ff4eca09

View file

@ -76,7 +76,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let tmp = String::from_utf8_lossy(&output.stdout).into_owned();
if !tmp.contains("sensor") {
drive_temps.push(tmp.replace("\n", "Not running as sudo?"));
drive_temps.push(tmp.replace("\n", ""));
} else {
drive_temps.push(tmp[0..9].to_string() + " No Sensor");
}