Spaces:
Sleeping
Sleeping
Update online.html
Browse files- online.html +1 -1
online.html
CHANGED
|
@@ -601,7 +601,7 @@ document.getElementById("but_sliv").addEventListener("click", function() {
|
|
| 601 |
dataHistory.sVen.push(parseFloat(data.sVen) || 0);
|
| 602 |
|
| 603 |
// Если больше 60 значений, удаляем первое
|
| 604 |
-
if (dataHistory.labels.length >
|
| 605 |
dataHistory.labels.shift();
|
| 606 |
dataHistory.dates.shift();
|
| 607 |
dataHistory.times.shift();
|
|
|
|
| 601 |
dataHistory.sVen.push(parseFloat(data.sVen) || 0);
|
| 602 |
|
| 603 |
// Если больше 60 значений, удаляем первое
|
| 604 |
+
if (dataHistory.labels.length > 360) {
|
| 605 |
dataHistory.labels.shift();
|
| 606 |
dataHistory.dates.shift();
|
| 607 |
dataHistory.times.shift();
|