diff --git a/CHANGELOG.md b/CHANGELOG.md index 2752268..7480531 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.9.3 | 2021-09-17 | `processes()` fixed memVsz, Memrss (macOS M1) | | 5.9.3 | 2021-09-17 | `cpuTemperature()` improved tdie detection (linus) | | 5.9.2 | 2021-09-16 | `graohics()` (macOS), `memLayout()` (win) improvements | | 5.9.1 | 2021-09-15 | `diskLayout()` fix size (macOS) | diff --git a/docs/history.html b/docs/history.html index dce3c15..304439a 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.9.4 + 2021-09-23 + processes() fix memVsz, memRss (macOS M1) + 5.9.3 2021-09-17 diff --git a/docs/index.html b/docs/index.html index 4535224..afab7e4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.9.3
+
New Version: 5.9.4
diff --git a/lib/processes.js b/lib/processes.js index 7f6e03c..df33f72 100644 --- a/lib/processes.js +++ b/lib/processes.js @@ -686,7 +686,7 @@ function processes(callback) { if (_linux || _freebsd || _openbsd || _netbsd || _darwin || _sunos) { if (_linux) { cmd = 'export LC_ALL=C; ps -axo pid:11,ppid:11,pcpu:6,pmem:6,pri:5,vsz:11,rss:11,ni:5,lstart:30,state:5,tty:15,user:20,command; unset LC_ALL'; } if (_freebsd || _openbsd || _netbsd) { cmd = 'export LC_ALL=C; ps -axo pid,ppid,pcpu,pmem,pri,vsz,rss,ni,lstart,state,tty,user,command; unset LC_ALL'; } - 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 (_darwin) { cmd = 'ps -axo pid,ppid,pcpu,pmem,pri,vsz=xxx_fake_title,rss=fake_title2,nice,lstart,state,tty,user,command -r'; } 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 && stdout.toString().trim()) {