Skip to content
Snippets Groups Projects
Commit 48627d12 authored by Wes Felter's avatar Wes Felter
Browse files

UI: Display controller uptime

parent a5e34c85
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,15 @@ window.Status = Backbone.Model.extend({
// console.log(self.toJSON());
}
});
$.ajax({
url:hackBase + "/wm/core/system/uptime/json",
dataType:"json",
success:function (data) {
console.log("fetched controller status: uptime");
self.set({uptime:(Math.round(data.systemUptimeMsec / 1000) + ' s')});
// console.log(self.toJSON());
}
});
$.ajax({
url:hackBase + "/wm/core/memory/json",
dataType:"json",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment