mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-06 00:46:56 +00:00
Limit series size
This commit is contained in:
@@ -33,6 +33,9 @@ function refresh () {
|
||||
data.now -= 1;
|
||||
series.unshift(data);
|
||||
}
|
||||
while (series.length > 250) {
|
||||
series.shift();
|
||||
}
|
||||
while (points.length > 0) {
|
||||
points.pop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user