adding funny stuff

This commit is contained in:
2025-08-02 01:03:36 +02:00
parent cd05e6a1e6
commit fef705577c

View File

@@ -6,7 +6,7 @@ use nvml_wrapper::Nvml;
use reqwest::{Client, StatusCode};
use serde::{Deserialize, Serialize};
use std::{error::Error, fs, process::Command, time::Duration};
use sysinfo::{Disks, System};
use sysinfo::{Components, Disks, System};
use tokio::time::{interval, sleep, Instant};
// Windows specific imports
@@ -590,6 +590,16 @@ fn get_disk_info() -> (f64, f64, f64) {
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
let size_b = if count > 0 {