From 343fa4e90e13aca78909aeaef564aaf3dc02ab3a Mon Sep 17 00:00:00 2001 From: rmartine Date: Sat, 8 Jul 2017 23:59:17 -0300 Subject: [PATCH] Set a better redraw time to avoid High CPU Usage Fix issues #82 and #55 Note: This fix just changed a hard-coded value. Need to discuss if this value shouldn't be parametrized by the user via command-line --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 0ca383f..ea0f6f1 100644 --- a/app.js +++ b/app.js @@ -632,7 +632,7 @@ const App = ((() => { setupCharts() screen.on('resize', setupCharts) - intervals.push(setInterval(draw, 100)) + intervals.push(setInterval(draw, 1000)) // @todo Make this more sexy intervals.push(setInterval(charts[0].plugin.poll, charts[0].plugin.interval))