|
|
|
@ -34,8 +34,6 @@ monitor.processes.render = function(label,data) {
|
|
|
|
|
var m = row.memory_usage >0
|
|
|
|
|
var c = row.cpu_usage > 0
|
|
|
|
|
var r = row.memory_available > 0
|
|
|
|
|
console.log([row.label,m,c,r])
|
|
|
|
|
console.log(row)
|
|
|
|
|
if ( r && c && m) {
|
|
|
|
|
row.status = status['running']
|
|
|
|
|
}else if (r && (!m || !c) ){
|
|
|
|
@ -51,7 +49,7 @@ monitor.processes.render = function(label,data) {
|
|
|
|
|
var options = {}
|
|
|
|
|
|
|
|
|
|
options.data = data
|
|
|
|
|
options.rowClass = function(item,index){return 'small'}
|
|
|
|
|
//options.rowClass = function(item,index){return 'small'}
|
|
|
|
|
options.autoload = true
|
|
|
|
|
options.fields = [{name:'label',type:'text',title:"Process",headercss:"small bold"},{name:"cpu_usage",type:"number",title:"CPU", headercss:"small bold"},{name:"memory_usage",type:"text",title:"Mem. Used",type:"number",headercss:"small bold"},{name:"memory_available",type:"number",title:"Mem. Avail",headercss:"small bold"},
|
|
|
|
|
{name:"status",type:"text",title:"Status",headercss:"small bold",align:"center"}
|
|
|
|
|