Update virtual-machines.tsx

This commit is contained in:
MacRimi
2025-10-05 17:10:28 +02:00
parent 79e7fd175e
commit f8c41ab39f

View File

@@ -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>