From 4c4c9a74a73e5a9c8e1a58d683ef7b99a271c9cd Mon Sep 17 00:00:00 2001 From: IrisVega Date: Sat, 20 Jul 2024 20:41:58 +0800 Subject: [PATCH] modified: static/js/sensor-1.js --- static/js/sensor-1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/sensor-1.js b/static/js/sensor-1.js index d437839..90ce3de 100644 --- a/static/js/sensor-1.js +++ b/static/js/sensor-1.js @@ -21,7 +21,7 @@ document.addEventListener('DOMContentLoaded', function () { .then(response => response.json()) .then(data => { // 如果已有200个数据则移除最旧的一条 - if (timestamps.length >= 200) { + if (timestamps.length >= 50) { timestamps.shift(); temperatures.shift(); }