From 2c7ab558d04f8e0a271ebb8fd23fc7b54a8763e5 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Thu, 9 Jan 2020 22:04:32 -0500 Subject: [PATCH] Fix a quite large bug with disks table display. --- Cargo.toml | 2 +- src/app/data_collection/disks.rs | 6 +++--- src/canvas.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8496d4ad..c5a466d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bottom" -version = "0.2.0" +version = "0.1.1" authors = ["Clement Tsang "] edition = "2018" repository = "https://github.com/ClementTsang/bottom" diff --git a/src/app/data_collection/disks.rs b/src/app/data_collection/disks.rs index eec34d32..bf564ab2 100644 --- a/src/app/data_collection/disks.rs +++ b/src/app/data_collection/disks.rs @@ -72,9 +72,9 @@ pub async fn get_disk_usage_list() -> crate::utils::error::Result> let usage = heim::disk::usage(partition.mount_point().to_path_buf()).await?; vec_disks.push(DiskData { - free_space: usage.free().get::(), - used_space: usage.used().get::(), - total_space: usage.total().get::(), + free_space: usage.free().get::(), + used_space: usage.used().get::(), + total_space: usage.total().get::(), mount_point: Box::from( partition .mount_point() diff --git a/src/canvas.rs b/src/canvas.rs index 96a6b824..bc0eaef1 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -727,7 +727,7 @@ fn draw_disk_table( }); Table::new( - ["Disk", "Mount", "Used", "Total", "Free", "R/s", "W/s"].iter(), + ["Disk", "Mount", "Used", "Free", "Total", "R/s", "W/s"].iter(), disk_rows, ) .block(