From ca810bfa4937684556b3eb05be9b0478f605f26f Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Mon, 14 Sep 2026 17:48:06 +0530 Subject: [PATCH 1/3] Remove IEC_UNITS flag from storage info Because storage devices typically advertise their capacities in "base 1000" rather than "base 1024". A disk advertised as having 2 TB capacity previously showed as 1.8 TiB in the system view. With this diff it now shows as 2 TB which is what a user would expect to see. --- src/Views/SystemView/SystemStorageView.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Views/SystemView/SystemStorageView.vala b/src/Views/SystemView/SystemStorageView.vala index 035f53bdf..72afa842c 100644 --- a/src/Views/SystemView/SystemStorageView.vala +++ b/src/Views/SystemView/SystemStorageView.vala @@ -96,8 +96,8 @@ public class Monitor.SystemStorageView : Gtk.Box { size = H3 }; - string size_string = format_size ((uint64) drive.size, IEC_UNITS); - string used_string = format_size ((uint64) (drive.size - drive.free), IEC_UNITS); + string size_string = format_size ((uint64) drive.size); + string used_string = format_size ((uint64) (drive.size - drive.free)); string drive_block_name_and_size_string = "%s 𐄁 %s / %s".printf (drive.device, used_string, size_string); From 73dcd67778ca17b8c486161d1219daeb6ce1b6a0 Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Mon, 14 Sep 2026 17:58:50 +0530 Subject: [PATCH 2/3] Remove storage usage info It usually shows larger usage because free space (which is used to calculate usage) is counted for only mounted volumes and won't work for multiple partitions with only some mounted. --- src/Views/SystemView/SystemStorageView.vala | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/Views/SystemView/SystemStorageView.vala b/src/Views/SystemView/SystemStorageView.vala index 72afa842c..64b7f578a 100644 --- a/src/Views/SystemView/SystemStorageView.vala +++ b/src/Views/SystemView/SystemStorageView.vala @@ -97,13 +97,8 @@ public class Monitor.SystemStorageView : Gtk.Box { }; string size_string = format_size ((uint64) drive.size); - string used_string = format_size ((uint64) (drive.size - drive.free)); - string drive_block_name_and_size_string = "%s 𐄁 %s / %s".printf (drive.device, used_string, size_string); - - if (drive.free == 0) { - drive_block_name_and_size_string = "%s 𐄁 %s".printf (drive.device, size_string); - } + string drive_block_name_and_size_string = "%s 𐄁 %s".printf (drive.device, size_string); var drive_block_name_and_size_label = new Gtk.Label (drive_block_name_and_size_string) { halign = START, @@ -116,14 +111,6 @@ public class Monitor.SystemStorageView : Gtk.Box { }; drive_not_mounted_label.add_css_class (Granite.CssClass.DIM); - var usagebar = new Gtk.LevelBar () { - max_value = 100.0, - min_value = 0.0, - margin_bottom = 6 - }; - usagebar.add_css_class (Granite.STYLE_CLASS_FLAT); - usagebar.set_value (100.0 * (drive.size - drive.free) / drive.size); - var drive_box = new Gtk.Box (VERTICAL, 0) { margin_top = 6, margin_end = 12, @@ -134,8 +121,6 @@ public class Monitor.SystemStorageView : Gtk.Box { drive_box.append (drive_block_name_and_size_label); if (drive.free == 0) { drive_box.append (drive_not_mounted_label); - } else { - drive_box.append (usagebar); } add_css_class (Granite.CssClass.CARD); From 2e70a1755d3b8c9f1ffe91407f0df9f6e9a73cff Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Mon, 14 Sep 2026 18:07:23 +0530 Subject: [PATCH 3/3] Remove "not mounted" label Not really useful info after removal of free/used info? Also, edge case of it potentially showing "not mounted" if free space really is zero. --- src/Views/SystemView/SystemStorageView.vala | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Views/SystemView/SystemStorageView.vala b/src/Views/SystemView/SystemStorageView.vala index 64b7f578a..70a3063c3 100644 --- a/src/Views/SystemView/SystemStorageView.vala +++ b/src/Views/SystemView/SystemStorageView.vala @@ -106,11 +106,6 @@ public class Monitor.SystemStorageView : Gtk.Box { }; drive_block_name_and_size_label.add_css_class (Granite.CssClass.DIM); - var drive_not_mounted_label = new Gtk.Label (_("Not mounted")) { - halign = START - }; - drive_not_mounted_label.add_css_class (Granite.CssClass.DIM); - var drive_box = new Gtk.Box (VERTICAL, 0) { margin_top = 6, margin_end = 12, @@ -119,9 +114,6 @@ public class Monitor.SystemStorageView : Gtk.Box { }; drive_box.append (drive_name_label); drive_box.append (drive_block_name_and_size_label); - if (drive.free == 0) { - drive_box.append (drive_not_mounted_label); - } add_css_class (Granite.CssClass.CARD); append (drive_box);