check out disk data
This commit is contained in:
@@ -580,6 +580,13 @@ fn get_disk_info() -> (f64, f64, f64) {
|
|||||||
let disks = Disks::new_with_refreshed_list();
|
let disks = Disks::new_with_refreshed_list();
|
||||||
for disk in disks.list() {
|
for disk in disks.list() {
|
||||||
// Ignoriere CD-ROMs und kleine Systempartitionen
|
// 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 {
|
if disk.total_space() > 100 * 1024 * 1024 {
|
||||||
// > 100MB
|
// > 100MB
|
||||||
total_size += disk.total_space();
|
total_size += disk.total_space();
|
||||||
|
Reference in New Issue
Block a user