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 dc1f03b commit aaa2b76
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugins/task_manager/js/task_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,12 @@ function createProcessTable(getboday, data) {
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.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>';
}

// <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>\
// <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;'):'') + '">\
' + colp + '\
Expand Down Expand Up @@ -510,7 +512,7 @@ function get_resource_list() {
// console.log('realllll');

buildRealProcess()
var tbody_tr = createProcessTable(true)
var tbody_tr = createProcessTable(true);
var tbody = '<thead>\
<tr style="cursor: pointer;">\
<th style="width:120px;" class="pro_name pro_ps" onclick="get_process_list(\'ps\',\'' + res_list[reverse] + '\')">应用名称</th>\
Expand Down

0 comments on commit aaa2b76

Please sign in to comment.