|
|
@ -31,7 +31,7 @@ monitor.processes.init = function(x){
|
|
|
|
monitor.processes.render = function(label,data) {
|
|
|
|
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>'}
|
|
|
|
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){
|
|
|
|
data = jx.utils.patterns.visitor(data,function(row){
|
|
|
|
console.log(row)
|
|
|
|
|
|
|
|
row.status = status[row.status]
|
|
|
|
row.status = status[row.status]
|
|
|
|
// var m = row.memory_usage >0
|
|
|
|
// var m = row.memory_usage >0
|
|
|
|
// var c = row.cpu_usage > 0
|
|
|
|
// var c = row.cpu_usage > 0
|
|
|
|