request_counters: force request 50% of the time to keep all counters updated

This commit is contained in:
Andrew Dolgov 2013-02-27 16:11:44 +04:00
parent 8fe3a493d4
commit bf40c12408
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ function request_counters(force) {
var query = "?op=rpc&method=getAllCounters&seq=" + next_seq(); var query = "?op=rpc&method=getAllCounters&seq=" + next_seq();
if (!force) if (!force && Math.random() >= 0.5)
query = query + "&last_article_id=" + getInitParam("last_article_id"); query = query + "&last_article_id=" + getInitParam("last_article_id");
console.log(query); console.log(query);