From eb265e3e941f2e779f6a1092e9054ee128f7c4ce Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Tue, 25 Mar 2025 07:55:13 +0800 Subject: [PATCH] Added comments to warn future dev - Added timestamps label cleaning - Added comments so it doesn't get commented again in future (related to #600) --- src/web/components/status.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web/components/status.html b/src/web/components/status.html index a0571ba..3fd4654 100644 --- a/src/web/components/status.html +++ b/src/web/components/status.html @@ -713,8 +713,10 @@ } function updateChart() { + //Do not remove these 3 lines, it will cause memory leak networkStatisticChart.data.datasets[0].data = rxValues; networkStatisticChart.data.datasets[1].data = txValues; + networkStatisticChart.data.labels = timestamps; if (networkStatisticChart != undefined){ networkStatisticChart.update(); }