Changed Rocket.toml to be example and fixed HDD bars

This commit is contained in:
2024-05-26 17:34:11 +01:00
parent e35a3d2b8d
commit a0fd3ada07
3 changed files with 4 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ struct DiskInfo {
total_space_bytes: u64,
available_space: String,
available_space_bytes: u64,
consumed_space_bytes: u64,
mount_point: String,
}
@@ -78,6 +79,7 @@ fn get_system_info() -> SysInfo {
total_space_bytes: ts,
available_space: Byte::from(ass).to_string(),
available_space_bytes: ass,
consumed_space_bytes: ts - ass,
mount_point: disk.mount_point().display().to_string(),
});
}