1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-21 15:41:28 +00:00

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

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);