Skip to content

Commit

Permalink
Update task_manager.js
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jun 3, 2024
1 parent aaa2b76 commit 3ccf084
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions plugins/task_manager/js/task_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,6 @@ function buildRealProcess() {

// 生成进程表格内容
function createProcessTable(getboday, data) {
console.log('createProcessTable',getboday, data);
console.log('realProcess',realProcess);
var tbody_tr = '';
for (var i = 0; i < realProcess.length; i++) {
if (realProcess[i].status == '活动') realProcess[i].status = '<span style="color:green;">活动</span>';
Expand Down Expand Up @@ -454,13 +452,12 @@ function createProcessTable(getboday, data) {

var tbody_td = '';
if ('io_read_bytes' in realProcess[i]){
tbody_td =+ '<td style="' + (data?(data.meter_head.io_read_bytes ? '' : 'display:none;'):'') + '">' + toSize(realProcess[i].io_read_speed).replace(' ', '') + '</td>';
tbody_td =+ '<td style="' + (data?(data.meter_head.io_write_bytes ? '' : 'display:none;'):'') + '">' + toSize(realProcess[i].io_write_speed).replace(' ', '') + '</td>';
tbody_td += '<td style="' + (data?(data.meter_head.io_read_bytes ? '' : 'display:none;'):'') + '">' + toSize(realProcess[i].io_read_speed).replace(' ', '') + '</td>';
tbody_td += '<td style="' + (data?(data.meter_head.io_write_bytes ? '' : 'display:none;'):'') + '">' + toSize(realProcess[i].io_write_speed).replace(' ', '') + '</td>';

tbody_td =+ '<td style="' + (data?(data.meter_head.up ? '' : 'display:none;'):'') + '" title="上行速度:' + toSize(realProcess[i].up) + '/秒\n发包速度:' + realProcess[i].up_package + '个/秒">' + toSize(realProcess[i].up).replace(' ', '') + '</td>';
tbody_td =+ '<td style="' + (data?(data.meter_head.down ? '' : 'display:none;'):'') + '" title="下行速度:' + toSize(realProcess[i].down) + '/秒\n收包速度:' + realProcess[i].down_package + '个/秒">' + toSize(realProcess[i].down).replace(' ', '') + '</td>';
tbody_td += '<td style="' + (data?(data.meter_head.up ? '' : 'display:none;'):'') + '" title="上行速度:' + toSize(realProcess[i].up) + '/秒\n发包速度:' + realProcess[i].up_package + '个/秒">' + toSize(realProcess[i].up).replace(' ', '') + '</td>';
tbody_td += '<td style="' + (data?(data.meter_head.down ? '' : 'display:none;'):'') + '" title="下行速度:' + toSize(realProcess[i].down) + '/秒\n收包速度:' + realProcess[i].down_package + '个/秒">' + toSize(realProcess[i].down).replace(' ', '') + '</td>';
}


tbody_tr += '<tr ' + selected + selected_one + ' onclick="click_process_tr(event,' + realProcess[i].pid + ',' + realProcess[i].fpid + ')" >\
<td class="td-pid" style="' + (data?(data.meter_head.ps ? '' : 'display:none;'):'') + '">\
Expand Down

0 comments on commit 3ccf084

Please sign in to comment.