fix graph if value is NaN (e.g. if GPU is selected but no NVIDIA card detected)

This commit is contained in:
Georg Sieber 2022-04-19 14:47:13 +02:00
parent 52f5c61f16
commit 059839525a

View File

@ -216,7 +216,7 @@ SystemMonitorGraph.prototype = {
}
// concatenate new value
values.push(value);
values.push(isNaN(value) ? 0 : value);
values.shift();
this.values = values;