processes() fixed Windows mem bug (naming conform to all platforms)
This commit is contained in:
parent
2d5a24068d
commit
a18969eaf3
@ -77,6 +77,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| 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.17 | 2021-05-05 | `networkInterfaces()` fixed Windows XP bug (WMIC NetEnabled) |
|
||||||
| 5.6.16 | 2021-05-05 | `graphics()` fixed compare bug |
|
| 5.6.16 | 2021-05-05 | `graphics()` fixed compare bug |
|
||||||
| 5.6.15 | 2021-05-05 | restored Node 4.x compatibility |
|
| 5.6.15 | 2021-05-05 | restored Node 4.x compatibility |
|
||||||
|
|||||||
@ -56,6 +56,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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>
|
<tr>
|
||||||
<th scope="row">5.6.17</th>
|
<th scope="row">5.6.17</th>
|
||||||
<td>2021-05-05</td>
|
<td>2021-05-05</td>
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
<img class="logo" src="assets/logo.png">
|
<img class="logo" src="assets/logo.png">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span> </div>
|
<div class="subtitle"><span id="typed"></span> </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>
|
<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>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -789,7 +789,7 @@ function processes(callback) {
|
|||||||
let commandPath = util.getValue(lines, 'ExecutablePath', '=', true);
|
let commandPath = util.getValue(lines, 'ExecutablePath', '=', true);
|
||||||
let utime = parseInt(util.getValue(lines, 'UserModeTime', '=', true), 10);
|
let utime = parseInt(util.getValue(lines, 'UserModeTime', '=', true), 10);
|
||||||
let stime = parseInt(util.getValue(lines, 'KernelModeTime', '=', 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;
|
allcpuu = allcpuu + utime;
|
||||||
allcpus = allcpus + stime;
|
allcpus = allcpus + stime;
|
||||||
result.all++;
|
result.all++;
|
||||||
@ -812,7 +812,7 @@ function processes(callback) {
|
|||||||
cpu: 0,
|
cpu: 0,
|
||||||
cpuu: 0,
|
cpuu: 0,
|
||||||
cpus: 0,
|
cpus: 0,
|
||||||
pmem: mem / os.totalmem() * 100,
|
mem: memw / os.totalmem() * 100,
|
||||||
priority: parseInt(util.getValue(lines, 'Priority', '=', true), 10),
|
priority: parseInt(util.getValue(lines, 'Priority', '=', true), 10),
|
||||||
memVsz: parseInt(util.getValue(lines, 'PageFileUsage', '=', true), 10),
|
memVsz: parseInt(util.getValue(lines, 'PageFileUsage', '=', true), 10),
|
||||||
memRss: Math.floor(parseInt(util.getValue(lines, 'WorkingSetSize', '=', true), 10) / 1024),
|
memRss: Math.floor(parseInt(util.getValue(lines, 'WorkingSetSize', '=', true), 10) / 1024),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user