]> git.wh0rd.org Git - tt-rss.git/commitdiff
add runtime info to headlines response
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 7 Jun 2007 08:06:36 +0000 (09:06 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 7 Jun 2007 08:06:36 +0000 (09:06 +0100)
backend.php
viewfeed.js

index 35be82cccb0146c25d2469bad2ed7720ac405206..0bed467284afd84e1a7f13f078170f288eca0f68 100644 (file)
 
                if ($_GET["debug"]) $timing_info = print_checkpoint("30", $timing_info);
 
+               print_runtime_info($link);
+
                print "</reply>";
        }
 
index bef608d3f40d07c7d7bee16612381a3a788bf67d..c6f0025fa8588a3ad3f6ff21c379fd7abdd0efb4 100644 (file)
@@ -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>";