From ebea935b6ff2203879b0ee416780303034c76e75 Mon Sep 17 00:00:00 2001 From: notCharles Date: Sun, 22 Jun 2025 18:20:24 -0400 Subject: [PATCH] Revert memory usage stat to use limit and not actual allocation from wings. --- app/Filament/Server/Widgets/ServerOverview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Server/Widgets/ServerOverview.php b/app/Filament/Server/Widgets/ServerOverview.php index 0f7455cb1..6f4d9587e 100644 --- a/app/Filament/Server/Widgets/ServerOverview.php +++ b/app/Filament/Server/Widgets/ServerOverview.php @@ -68,7 +68,7 @@ class ServerOverview extends StatsOverviewWidget } $latestMemoryUsed = collect(cache()->get("servers.{$this->server->id}.memory_bytes"))->last(default: 0); - $totalMemory = collect(cache()->get("servers.{$this->server->id}.memory_limit_bytes"))->last(default: 0); + $totalMemory = $this->server->memory * 2 ** 20 ?? 0; $used = convert_bytes_to_readable($latestMemoryUsed); $total = convert_bytes_to_readable($totalMemory);