summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-06-07 09:06:36 +0100
committerAndrew Dolgov <[email protected]>2007-06-07 09:06:36 +0100
commit03c88bdd9442da02dd9d9b8582444e0fa6d6da2c (patch)
treed017c19f45fb116594f41d91fdc0f62612284e3f
parent2774dfcecc999d98fefcf98ca9442f33161ac76a (diff)
add runtime info to headlines response
-rw-r--r--backend.php2
-rw-r--r--viewfeed.js9
2 files changed, 11 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 35be82ccc..0bed46728 100644
--- a/backend.php
+++ b/backend.php
@@ -236,6 +236,8 @@
if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info);
+ print_runtime_info($link);
+
print "</reply>";
}
diff --git a/viewfeed.js b/viewfeed.js
index bef608d3f..c6f0025fa 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -45,6 +45,7 @@ function headlines_callback() {
var headlines = xmlhttp.responseXML.getElementsByTagName("headlines")[0];
var counters = xmlhttp.responseXML.getElementsByTagName("counters")[0];
var articles = xmlhttp.responseXML.getElementsByTagName("article");
+ var runtime_info = xmlhttp.responseXML.getElementsByTagName("runtime-info");
if (headlines) {
f.innerHTML = headlines.firstChild.nodeValue;
@@ -70,6 +71,14 @@ function headlines_callback() {
} else {
debug("counters container not found in reply");
}
+
+ if (runtime_info) {
+ debug("parsing runtime info: " + runtime_info[0]);
+ parse_runtime_info(runtime_info[0]);
+ } else {
+ debug("counters container not found in reply");
+ }
+
} else {
debug("headlines_callback: returned no XML object");
f.innerHTML = "<div class='whiteBox'>" + __('Could not update headlines (missing XML object)') + "</div>";