Skip to content

Commit dd28ca4

Browse files
committed
fix(grafana): statistics were not string sometimes
1 parent 9c4dfba commit dd28ca4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/base/GrafanaHandler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ class GrafanaHandler {
183183
* @param {*} server
184184
*/
185185
handleStatistics(statistics, server) {
186+
if (!statistics || typeof statistics !== "string") return
186187
const json = JSON.parse(statistics.split("\n")[0]);
187188
const otherStats = json[Object.keys(json)[0]].other;
188189

0 commit comments

Comments
 (0)