mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 08:18:50 +02:00
Revert memory usage stat to use limit and not actual allocation from wings.
This commit is contained in:
parent
cae77daefc
commit
ebea935b6f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user