diff --git a/modules/monitor-info.js b/modules/monitor-info.js index ec4f65a..b9df9d0 100644 --- a/modules/monitor-info.js +++ b/modules/monitor-info.js @@ -390,7 +390,7 @@ function monitorinfo() } else { - ch.stdin.write('ps -e | grep X\nexit\n'); + ch.stdin.write("ps -e -o comm,cgroup|egrep '^X.*(-|::/user.slice.*)$'\nexit\n"); } ch.waitExit();