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,11 +568,19 @@ function all_counters_callback() {
return; return;
} }
debug("in all_counters_callback");
var reply = xmlhttp_rpc.responseXML.firstChild; var reply = xmlhttp_rpc.responseXML.firstChild;
var counters = reply.firstChild; var counters = reply.firstChild;
parse_counters(counters); parse_counters(counters);
var runtime = counters.nextSibling;
if (runtime) {
getMainContext().parse_runtime_info(runtime);
}
} catch (e) { } catch (e) {
exception_error("all_counters_callback", e); exception_error("all_counters_callback", e);

View file

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