[skip travis] Fix formatting in field

This commit is contained in:
ClementTsang 2019-12-27 18:22:33 -05:00
parent 25d0ae45b4
commit 9b11e7ea9c

View file

@ -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,
]);