decouple runtime-info object from counters

master
Andrew Dolgov 4 years ago
parent 553548b689
commit 7f41228a71

@ -99,9 +99,6 @@ class RPC extends Handler_Protected {
'seq' => $seq 'seq' => $seq
]; ];
if ($seq % 2)
$reply['runtime-info'] = $this->make_runtime_info();
print json_encode($reply); print json_encode($reply);
} }

@ -714,11 +714,6 @@ const App = {
App.updateRuntimeInfo(); App.updateRuntimeInfo();
}); });
if (!this.getInitParam("bw_limit"))
window.setInterval(() => {
App.updateRuntimeInfo();
}, 60 * 1000)
} else { } else {
Feeds.reload(); Feeds.reload();
@ -772,12 +767,16 @@ const App = {
}, 3600 * 1000); }, 3600 * 1000);
} }
console.log("second stage ok");
PluginHost.run(PluginHost.HOOK_INIT_COMPLETE, null); PluginHost.run(PluginHost.HOOK_INIT_COMPLETE, null);
} }
if (!this.getInitParam("bw_limit"))
window.setInterval(() => {
App.updateRuntimeInfo();
}, 60 * 1000)
console.log("second stage ok");
}, },
checkForUpdates: function() { checkForUpdates: function() {
console.log('checking for updates...'); console.log('checking for updates...');

Loading…
Cancel
Save