chore(proxmox): remove Statistics page, Livewire component, and related UI
Made-with: Cursor
This commit is contained in:
@@ -188,12 +188,6 @@
|
||||
$memoryTotal = (int)($status?->maxmem ?? 0);
|
||||
$memoryUsed = (int)($status?->mem ?? 0);
|
||||
$memoryPercent = $memoryTotal > 0 ? round(($memoryUsed / $memoryTotal) * 100, 1) : 0;
|
||||
$manualSnapshotLimit = 5;
|
||||
$manualSnapshotUsed = $server->statistics()->where('is_automatic', false)->count();
|
||||
$manualSnapshotPercent = $manualSnapshotLimit > 0
|
||||
? round(($manualSnapshotUsed / $manualSnapshotLimit) * 100, 1)
|
||||
: 0;
|
||||
|
||||
$badgeForPercent = function (float $value) {
|
||||
if ($value >= 100) {
|
||||
return ['label' => 'Over entitlement', 'class' => 'text-danger bg-danger/15'];
|
||||
|
||||
Reference in New Issue
Block a user