Fixed stats graph break when server not running.

This commit is contained in:
Ylian Saint-Hilaire 2020-03-31 10:47:27 -07:00
parent 7bd3a6e75e
commit a4fbeb1d83
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.5.0-w",
"version": "0.5.0-x",
"keywords": [
"Remote Management",
"Intel AMT",

View File

@ -10924,6 +10924,7 @@
data.datasets[1].data.push({ x: serverTimelineStats[i].time - 1, y: NaN });
data.datasets[2].data.push({ x: serverTimelineStats[i].time - 1, y: NaN });
data.datasets[3].data.push({ x: serverTimelineStats[i].time - 1, y: NaN });
data.datasets[4].data.push({ x: serverTimelineStats[i].time - 1, y: NaN });
}
if (serverTimelineStats[i].conn) {
data.datasets[0].data.push({ x: serverTimelineStats[i].time, y: serverTimelineStats[i].conn.ca });