Browse Source

Fixed percentage calculation of disk space

Marcel Baumgartner 1 year ago
parent
commit
8b15383b45
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Moonlight/Features/Servers/UI/Views/Admin/Nodes/Index.razor

+ 1 - 1
Moonlight/Features/Servers/UI/Views/Admin/Nodes/Index.razor

@@ -93,7 +93,7 @@
                     @if (NodeStats.ContainsKey(context!.Id) && NodeStats[context.Id] != null)
                     {
                         var disk = NodeStats[context!.Id]!.Hardware.Disk;
-                        var percent = Math.Round((float)disk.Free / disk.Total * 100F, 2);
+                        var percent = Math.Round(100F - (float)disk.Free / disk.Total * 100F, 2);
 
                         <ColoredBar Value="percent"/>
                     }