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