check out disk data

This commit is contained in:
2025-08-02 13:18:47 +02:00
parent bc57076f60
commit 4e4cf5e668

View File

@@ -580,6 +580,13 @@ fn get_disk_info() -> (f64, f64, f64) {
let disks = Disks::new_with_refreshed_list();
for disk in disks.list() {
// Ignoriere CD-ROMs und kleine Systempartitionen
println!(
"Disk_Name: {:?}, Disk_Kind: {}, Total: {}, Available: {}",
disk.name(),
disk.kind(),
disk.total_space(),
disk.available_space()
);
if disk.total_space() > 100 * 1024 * 1024 {
// > 100MB
total_size += disk.total_space();