adding funny stuff
This commit is contained in:
@@ -6,7 +6,7 @@ use nvml_wrapper::Nvml;
|
|||||||
use reqwest::{Client, StatusCode};
|
use reqwest::{Client, StatusCode};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::{error::Error, fs, process::Command, time::Duration};
|
use std::{error::Error, fs, process::Command, time::Duration};
|
||||||
use sysinfo::{Disks, System};
|
use sysinfo::{Components, Disks, System};
|
||||||
use tokio::time::{interval, sleep, Instant};
|
use tokio::time::{interval, sleep, Instant};
|
||||||
|
|
||||||
// Windows specific imports
|
// Windows specific imports
|
||||||
@@ -590,6 +590,16 @@ fn get_disk_info() -> (f64, f64, f64) {
|
|||||||
count += 1;
|
count += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let components = Components::new_with_refreshed_list();
|
||||||
|
for component in &components {
|
||||||
|
if let Some(temperature) = component.temperature() {
|
||||||
|
println!(
|
||||||
|
"Component: {}, Temperature: {}°C",
|
||||||
|
component.label(),
|
||||||
|
temperature
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Berechnungen
|
// Berechnungen
|
||||||
let size_b = if count > 0 {
|
let size_b = if count > 0 {
|
||||||
|
Reference in New Issue
Block a user