work around google charts memory leak; refresh page every 1000 charts updates
Costa Tsaousis (ktsaou) committed
Oct 22, 2013 at 17:21 UTC
1531ac1da21dd9a69b5b51116d73321d7f8a67af
1 file changed
+6
-2
netdata.start
+6
-2
@@ -193,11 +193,15 @@ fi
193
cat >>all.html <<EOF3
194
}
195
196
+ var refreshCount = 0;
197
function myChartsRefresh() {
197
- // refresh up to 4 charts per second
198
+ refreshCount++;
199
+ if(refreshCount > 1000) location.reload();
200
+
201
+ // refresh up to $ref charts per second
202
refreshCharts($ref);
203
}
200
-
204
+
205
// EDIT: how often the charts are updated, in milliseconds
206
setInterval(myChartsRefresh, $tim);
207
</script>