added used imports
This commit is contained in:
@@ -420,6 +420,8 @@ fn get_cpu_temp() -> Option<f32> {
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
use std::fs;
|
||||
use std::process::Command;
|
||||
println!("");
|
||||
if let Ok(output) = Command::new("sensors").output() {
|
||||
let stdout = String::from_utf8_lossy(&output.stdout);
|
||||
@@ -675,6 +677,7 @@ fn get_disk_info() -> (f64, f64, f64) {
|
||||
println!("Fallback: Using 'df' command to get disk info.");
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
use std::process::Command;
|
||||
if let Ok(output) = Command::new("df")
|
||||
.arg("-B1")
|
||||
.arg("--output=size,used")
|
||||
|
Reference in New Issue
Block a user