]> git.wh0rd.org Git - tt-rss.git/commitdiff
request_counters: force request 50% of the time to keep all counters updated
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Feb 2013 12:11:44 +0000 (16:11 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Feb 2013 12:11:44 +0000 (16:11 +0400)
js/feedlist.js

index 282e64b372c8100a83a10a75a8852646c894b813..6f62de7b883a98feced8022ebef800e66e3f56be 100644 (file)
@@ -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);