call parse_runtime_info from all_counters_callback

This commit is contained in:
Andrew Dolgov 2006-05-24 04:22:48 +01:00
parent 64a2875dcc
commit 1cb7492dc4
2 changed files with 12 additions and 0 deletions

View File

@ -568,12 +568,20 @@ function all_counters_callback() {
return;
}
debug("in all_counters_callback");
var reply = xmlhttp_rpc.responseXML.firstChild;
var counters = reply.firstChild;
parse_counters(counters);
var runtime = counters.nextSibling;
if (runtime) {
getMainContext().parse_runtime_info(runtime);
}
} catch (e) {
exception_error("all_counters_callback", e);
}

View File

@ -522,10 +522,14 @@ function toggleDispRead() {
function parse_runtime_info(elem) {
var param = elem.firstChild;
debug("parse_runtime_info");
while (param) {
var k = param.getAttribute("key");
var v = param.getAttribute("value");
debug("RI: " + k + " => " + v);
var w = document.getElementById("noDaemonWarning");
if (w) {