processes() fix alpine linux
This commit is contained in:
+1
-1
@@ -689,7 +689,7 @@ function processes(callback) {
|
||||
if (_darwin) { cmd = 'export LC_ALL=C; ps -axo pid,ppid,pcpu,pmem,pri,vsz,rss,nice,lstart,state,tty,user,command -r; unset LC_ALL'; }
|
||||
if (_sunos) { cmd = 'ps -Ao pid,ppid,pcpu,pmem,pri,vsz,rss,nice,stime,s,tty,user,comm'; }
|
||||
exec(cmd, { maxBuffer: 1024 * 20000 }, function (error, stdout) {
|
||||
if (!error) {
|
||||
if (!error && stdout.toString().trim()) {
|
||||
result.list = (parseProcesses(stdout.toString().split('\n'))).slice();
|
||||
result.all = result.list.length;
|
||||
result.running = result.list.filter(function (e) {
|
||||
|
||||
Reference in New Issue
Block a user