Skip to content

Commit

Permalink
Fix Progress bar for drives with 0% free space
Browse files Browse the repository at this point in the history
Fix % free space calculation used by drive progress bar.  #422
  • Loading branch information
DavidWiseman committed Oct 27, 2022
1 parent b81c481 commit 9195763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DBADashGUI/Drives/Drive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public double PercentFreeSpace
{
get
{
if (FreeSpace == 0 || DriveCapacity == 0)
if (DriveCapacity == 0)
{
return 100;
return 0;
}
else
{
Expand Down

0 comments on commit 9195763

Please sign in to comment.