FIX: updateDescribeGraph() is disabled by default (too slow on low-end machines)

This commit is contained in:
Overtorment 2021-05-14 11:10:41 +01:00
parent f0ad86f1b9
commit f0bf066cfd
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,5 @@
let config = {
enableUpdateDescribeGraph: false,
postRateLimit: 100,
rateLimit: 200,
bitcoind: {

View File

@ -118,8 +118,10 @@ function updateDescribeGraph() {
console.log('updated graph');
});
}
updateDescribeGraph();
setInterval(updateDescribeGraph, 120000);
if (config.enableUpdateDescribeGraph) {
updateDescribeGraph();
setInterval(updateDescribeGraph, 120000);
}
// ######################## ROUTES ########################