mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-10 22:54:21 +00:00
[skip travis] Fix formatting in field
This commit is contained in:
parent
25d0ae45b4
commit
9b11e7ea9c
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@ pub fn update_disk_row(app_data: &data_collection::Data) -> Vec<Vec<String>> {
|
|||
disk.name.to_string(),
|
||||
disk.mount_point.to_string(),
|
||||
format!("{:.0}%", disk.used_space as f64 / disk.total_space as f64 * 100_f64),
|
||||
format!("{:4.*}{}", 0, converted_free_space.0, converted_free_space.1),
|
||||
format!("{:4.*}{}", 0, converted_total_space.0, converted_total_space.1),
|
||||
format!("{:.*}{}", 0, converted_free_space.0, converted_free_space.1),
|
||||
format!("{:.*}{}", 0, converted_total_space.0, converted_total_space.1),
|
||||
io_activity.0,
|
||||
io_activity.1,
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue