Added comments to warn future dev

- Added timestamps label cleaning
- Added comments so it doesn't get commented again in future (related to #600)
This commit is contained in:
Toby Chui 2025-03-25 07:55:13 +08:00
parent 8504ff16cb
commit eb265e3e94

View File

@ -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();
}