Limit series size

This commit is contained in:
Jerome Petazzoni
2015-06-07 19:47:30 -07:00
parent e38c1984b6
commit fae45aae43

View File

@@ -33,6 +33,9 @@ function refresh () {
data.now -= 1;
series.unshift(data);
}
while (series.length > 250) {
series.shift();
}
while (points.length > 0) {
points.pop();
}