status handling backend and front-end refactoring

master
Steve L. Nyemba 8 years ago
parent b0b54c81ed
commit 586d8a8968

@ -31,7 +31,7 @@ monitor.processes.init = function(x){
monitor.processes.render = function(label,data) {
var status = {"idle":'<i class="fa fa-ellipsis-h" title="IDLE"></i>',"running":'<i class="fa fa-check" title="RUNNING"></i>',"crash":'<i class="fa fa-times" title="CRASHED"></i>'}
data = jx.utils.patterns.visitor(data,function(row){
console.log(row)
row.status = status[row.status]
// var m = row.memory_usage >0
// var c = row.cpu_usage > 0

Loading…
Cancel
Save