We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fde3337 commit 7e6974bCopy full SHA for 7e6974b
src/app/core/services/metric.service.ts
@@ -89,6 +89,23 @@ class MetricService {
89
}
90
91
calculateGauges(stats) {
92
+
93
+ if (!stats["gauges"]) {
94
+ return {
95
+ "cpuValue":0,
96
+ "cpuPercent":0,
97
+ "maxDiskCache":0,
98
+ "totalDiskCache":0,
99
+ "diskCachePercent":0,
100
+ "maxMemory":0,
101
+ "usedMemoy":0,
102
+ "ramPercent":"0",
103
+ "totalDisk":0,
104
+ "usableDisk":0,
105
+ "diskPercent":0
106
+ };
107
+ }
108
109
// CPU
110
111
let cpuValue = parseFloat(stats["gauges"]["server.runtime.cpu"].value);
0 commit comments