|
|
@ -234,6 +234,7 @@ monitor.processes.summary.init = function(logs){
|
|
|
|
conf.data = { labels: labels, backgroundColor:colors }
|
|
|
|
conf.data = { labels: labels, backgroundColor:colors }
|
|
|
|
var xr = [], xi = [], xc = [],xr_bg = [],xc_bg = [],xi_bg = []
|
|
|
|
var xr = [], xi = [], xc = [],xr_bg = [],xc_bg = [],xi_bg = []
|
|
|
|
jx.utils.patterns.visitor(labels, function (id) {
|
|
|
|
jx.utils.patterns.visitor(labels, function (id) {
|
|
|
|
|
|
|
|
|
|
|
|
var rows = logs[id]
|
|
|
|
var rows = logs[id]
|
|
|
|
var index = xr.length
|
|
|
|
var index = xr.length
|
|
|
|
xr_bg[index] = RUNNING_COLOR
|
|
|
|
xr_bg[index] = RUNNING_COLOR
|
|
|
@ -259,8 +260,7 @@ monitor.processes.summary.init = function(logs){
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
conf.data.datasets = [{ label: 'running', data:xr,backgroundColor:xr_bg},{label:'crash',data:xc,backgroundColor:xc_bg},{label:'idle',data:xi,backgroundColor:xi_bg} ]
|
|
|
|
conf.data.datasets = [{ label: 'Running', data:xr,backgroundColor:xr_bg},{label:'Crash',data:xc,backgroundColor:xc_bg},{label:'Idle',data:xi,backgroundColor:xi_bg} ]
|
|
|
|
console.log(conf.data.datasets)
|
|
|
|
|
|
|
|
chart = new Chart(context, conf)
|
|
|
|
chart = new Chart(context, conf)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|