mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-10-11 12:26:18 +00:00
Update virtual-machines.tsx
This commit is contained in:
@@ -368,14 +368,15 @@ export function VirtualMachines() {
|
|||||||
<div className={`text-2xl font-bold ${isMemoryOvercommit ? "text-yellow-500" : "text-foreground"}`}>
|
<div className={`text-2xl font-bold ${isMemoryOvercommit ? "text-yellow-500" : "text-foreground"}`}>
|
||||||
{totalAllocatedMemoryGB} GB
|
{totalAllocatedMemoryGB} GB
|
||||||
</div>
|
</div>
|
||||||
{isMemoryOvercommit ? (
|
{isMemoryOvercommit && (
|
||||||
<p className="text-xs text-yellow-500 mt-2 flex items-center gap-1">
|
<Badge variant="outline" className="mt-2 bg-yellow-500/10 text-yellow-500 border-yellow-500/20">
|
||||||
<AlertTriangle className="h-3 w-3" />
|
<AlertTriangle className="h-3 w-3 mr-1" />
|
||||||
Overcommit: Excede memoria física ({physicalMemoryGB} GB)
|
Overcommit
|
||||||
</p>
|
</Badge>
|
||||||
) : (
|
|
||||||
<p className="text-xs text-muted-foreground mt-2">Allocated RAM</p>
|
|
||||||
)}
|
)}
|
||||||
|
<p className="text-xs text-muted-foreground mt-2">
|
||||||
|
{isMemoryOvercommit ? `Excede memoria física (${physicalMemoryGB} GB)` : "Allocated RAM"}
|
||||||
|
</p>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user