Skip to content

Commit e342c60

Browse files
committed
make throttling conditional
1 parent 55319e1 commit e342c60

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

photon-client/src/components/settings/MetricsCard.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ const platformMetrics = computed<MetricItem[]>(() => {
5959
? `${metrics.ramUtil}MB of ${metrics.ramMem}MB`
6060
: "Unknown"
6161
},
62-
{
63-
header: "CPU Throttling",
64-
value: metrics.cpuThr?.toString() || "Unknown"
65-
},
6662
{
6763
header: "Uptime",
6864
value: (() => {
@@ -102,6 +98,15 @@ const platformMetrics = computed<MetricItem[]>(() => {
10298
});
10399
}
104100
101+
if (metrics.cpuThr) {
102+
stats.push({
103+
header: "CPU Throttling",
104+
value: metrics.cpuThr.toString()
105+
}
106+
107+
)
108+
}
109+
105110
return stats;
106111
});
107112

0 commit comments

Comments
 (0)