Skip to content

Commit

Permalink
Merge pull request #2659 from dashpole/fix_processes
Browse files Browse the repository at this point in the history
Fix ordering of processes table
  • Loading branch information
dashpole authored Sep 3, 2020
2 parents e3f3ee1 + b6a007a commit ccefbf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/internal/pages/assets/js/containers.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,14 +642,14 @@ function drawProcesses(isRoot, rootDir, processInfo) {
elements.push(processInfo[i].status);
elements.push(processInfo[i].running_time);
elements.push(processInfo[i].cmd);
elements.push(processInfo[i].psr);
if (isRoot) {
var cgroup = processInfo[i].cgroup_path;
// Use the raw cgroup link as it works for all containers.
var cgroupLink = '<a href="' + rootDir + 'containers/' + cgroup + '">' +
cgroup.substr(0, 30) + ' </a>';
elements.push({v: cgroup, f: cgroupLink});
}
elements.push(processInfo[i].psr);
data.push(elements);
}
drawTable(titles, titleTypes, data, 'processes-top', 25, sortIndex);
Expand Down
Loading

0 comments on commit ccefbf8

Please sign in to comment.