}
}
-/* if ($mode != "prefetch_old") {
+ if ($mode != "prefetch_old") {
print "<counters>";
getAllCounters($link, $omode);
print "</counters>";
- } */
+ }
print "</reply>";
break; // view
if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info);
-/* if (time() - $_SESSION["get_all_counters_stamp"] > 300) {
+ if (time() - $_SESSION["get_all_counters_stamp"] > 300) {
print "<counters>";
getAllCounters($link, $omode, $feed);
print "</counters>";
- } */
+ }
if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info);
function request_counters_real() {
try {
+
+ debug("requesting counters...");
+
var query = "backend.php?op=rpc&subop=getAllCounters";
if (tagsAreDisplayed()) {
if (timestamp - counters_last_request > 10) {
debug("scheduling request of counters...");
- window.setTimeout("request_counters_real()", 100);
+ window.setTimeout("request_counters_real()", 1000);
counters_last_request = timestamp;
} else {
debug("request_counters: rate limit reached: " + (timestamp - counters_last_request));