mirror of
https://github.com/csehviktor/status-monitor.git
synced 2025-08-08 18:06:14 +02:00
fix undefined values
This commit is contained in:
@@ -92,7 +92,7 @@ export function AgentPage() {
|
||||
title: "CPU USAGE",
|
||||
value: formatPercentage(cpuUsage),
|
||||
status: getMetricStatus(cpuUsage),
|
||||
subtitle: `${metrics?.cpu.threads} threads`,
|
||||
subtitle: `${metrics?.cpu.threads ?? 0} threads`,
|
||||
}}
|
||||
>
|
||||
<DonutChart
|
||||
|
||||
Reference in New Issue
Block a user