processes() fixed CPU usage info (windows)

This commit is contained in:
Sebastian Hildebrandt 2023-01-29 21:01:11 +01:00
parent 27039b5de0
commit c1f8b65aaa
4 changed files with 9 additions and 3 deletions

View File

@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.17.7 | 2023-01-29 | `processes()` fixed CPU usage info (windows) |
| 5.17.6 | 2023-01-29 | `processes()` fixed Node Version 8 compatibility issue |
| 5.17.5 | 2023-01-29 | `processes()` improved parsing of all services (linux) |
| 5.17.4 | 2023-01-24 | `networkInterfaces()` sanitizing networkInterfaces device names |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.17.7</th>
<td>2023-01-29</td>
<td><span class="code">processes()</span> fixed CPU usage info (windows)</td>
</tr>
<tr>
<th scope="row">5.17.6</th>
<td>2023-01-29</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.17.6</span></div>
<div class="version">New Version: <span id="version">5.17.7</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

@ -496,8 +496,8 @@ function calcProcStatWin(procStat, all, _cpu_old) {
}
return {
pid: procStat.pid,
utime: cpuu > 0 ? procStat.utime : 0,
stime: cpus > 0 ? procStat.stime : 0,
utime: procStat.utime,
stime: procStat.stime,
cpuu: cpuu > 0 ? cpuu : 0,
cpus: cpus > 0 ? cpus : 0
};