processes() fixed Windows mem bug (naming conform to all platforms)

This commit is contained in:
Sebastian Hildebrandt 2021-05-06 12:34:56 +02:00
parent 2d5a24068d
commit a18969eaf3
4 changed files with 9 additions and 3 deletions

View File

@ -77,6 +77,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 5.6.18 | 2021-05-06 | `processes()` fixed Windows mem bug (naming conform to all platforms) |
| 5.6.17 | 2021-05-05 | `networkInterfaces()` fixed Windows XP bug (WMIC NetEnabled) |
| 5.6.16 | 2021-05-05 | `graphics()` fixed compare bug |
| 5.6.15 | 2021-05-05 | restored Node 4.x compatibility |

View File

@ -56,6 +56,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.6.18</th>
<td>2021-05-06</td>
<td><span class="code">processes()</span> fixed Windows mem bug (naming conform to all platforms)</td>
</tr>
<tr>
<th scope="row">5.6.17</th>
<td>2021-05-05</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.6.17</span></div>
<div class="version">New Version: <span id="version">5.6.18</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">

View File

@ -789,7 +789,7 @@ function processes(callback) {
let commandPath = util.getValue(lines, 'ExecutablePath', '=', true);
let utime = parseInt(util.getValue(lines, 'UserModeTime', '=', true), 10);
let stime = parseInt(util.getValue(lines, 'KernelModeTime', '=', true), 10);
let mem = parseInt(util.getValue(lines, 'WorkingSetSize', '=', true), 10);
let memw = parseInt(util.getValue(lines, 'WorkingSetSize', '=', true), 10);
allcpuu = allcpuu + utime;
allcpus = allcpus + stime;
result.all++;
@ -812,7 +812,7 @@ function processes(callback) {
cpu: 0,
cpuu: 0,
cpus: 0,
pmem: mem / os.totalmem() * 100,
mem: memw / os.totalmem() * 100,
priority: parseInt(util.getValue(lines, 'Priority', '=', true), 10),
memVsz: parseInt(util.getValue(lines, 'PageFileUsage', '=', true), 10),
memRss: Math.floor(parseInt(util.getValue(lines, 'WorkingSetSize', '=', true), 10) / 1024),