Changed Rocket.toml to be example and fixed HDD bars
This commit is contained in:
@@ -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(),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user