rpc/getAllCounters: include virtual counters when last_article_id is supplied and unchanged

This commit is contained in:
Andrew Dolgov 2013-02-27 16:51:06 +04:00
parent 5129d29d65
commit 77a3e1233f

View file

@ -247,6 +247,8 @@ class RPC extends Handler_Protected {
if ($last_article_id != getLastArticleId($this->link)) {
$reply['counters'] = getAllCounters($this->link);
} else {
$reply['counters'] = getVirtCounters($this->link);
}
$reply['runtime-info'] = make_runtime_info($this->link);