From 91957632c97d52f3814526cdaadeedb0c85eb034 Mon Sep 17 00:00:00 2001 From: David Wiseman Date: Thu, 27 Oct 2022 20:23:08 +0100 Subject: [PATCH] Fix Progress bar for drives with 0% free space Fix % free space calculation used by drive progress bar. #422 --- DBADashGUI/Drives/Drive.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DBADashGUI/Drives/Drive.cs b/DBADashGUI/Drives/Drive.cs index 2939421c..cb7a0691 100644 --- a/DBADashGUI/Drives/Drive.cs +++ b/DBADashGUI/Drives/Drive.cs @@ -108,9 +108,9 @@ public double PercentFreeSpace { get { - if (FreeSpace == 0 || DriveCapacity == 0) + if (DriveCapacity == 0) { - return 100; + return 0; } else {