reduce counters request minimum interval
This commit is contained in:
parent
bf40c12408
commit
5129d29d65
|
@ -227,7 +227,7 @@ function request_counters(force) {
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
var timestamp = Math.round(date.getTime() / 1000);
|
var timestamp = Math.round(date.getTime() / 1000);
|
||||||
|
|
||||||
if (force || timestamp - counters_last_request > 15) {
|
if (force || timestamp - counters_last_request > 5) {
|
||||||
console.log("scheduling request of counters...");
|
console.log("scheduling request of counters...");
|
||||||
|
|
||||||
counters_last_request = timestamp;
|
counters_last_request = timestamp;
|
||||||
|
|
Loading…
Reference in New Issue