From 870b2516a183be6512718a16ddff81607ea67bee Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Sat, 27 Apr 2024 17:03:45 +0200 Subject: [PATCH] Fixed node list percentage calculation for storage --- Moonlight/Features/Servers/UI/Views/Admin/Nodes/Index.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moonlight/Features/Servers/UI/Views/Admin/Nodes/Index.razor b/Moonlight/Features/Servers/UI/Views/Admin/Nodes/Index.razor index 0ca4b9d..4b25ce7 100644 --- a/Moonlight/Features/Servers/UI/Views/Admin/Nodes/Index.razor +++ b/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 * 100, 2); + var percent = Math.Round((float)disk.Free / disk.Total * 100F, 2); }