Fixed .cpu undefined

This commit is contained in:
2025-12-31 17:21:30 +01:00
parent 5bd0c6ba3b
commit 1eadacae9e
+2 -2
View File
@@ -207,14 +207,14 @@ export default function MonitoringPage() {
<div>
<div className="flex justify-between text-[10px] text-muted-foreground mb-1">
<span>CPU</span>
<span>{container.cpu.toFixed(1)}%</span>
<span>{container.cpu?.toFixed(1)}%</span>
</div>
<Progress value={container.cpu} className="w-full" />
</div>
<div>
<div className="flex justify-between text-[10px] text-muted-foreground mb-1">
<span>Memory</span>
<span>{container.memory.toFixed(1)}%</span>
<span>{container.memory?.toFixed(1)}%</span>
</div>
<Progress value={container.memory} className="w-full" />
</div>