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