From: Andrew Dolgov Date: Wed, 27 Feb 2013 12:11:44 +0000 (+0400) Subject: request_counters: force request 50% of the time to keep all counters updated X-Git-Tag: 1.7.1~22^2~13 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bf40c12408a6f6fd3183d54b47ef1fe9e19983d2;p=tt-rss.git request_counters: force request 50% of the time to keep all counters updated --- diff --git a/js/feedlist.js b/js/feedlist.js index 282e64b3..6f62de7b 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -234,7 +234,7 @@ function request_counters(force) { 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"); console.log(query);