processLoad() fix windows
This commit is contained in:
parent
e75fa71566
commit
a081fe618b
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.14.9 | 2019-10-01 | `processLoad()` fix windows |
|
||||
| 4.14.8 | 2019-08-22 | `parseDateTime()` fix coding error |
|
||||
| 4.14.7 | 2019-08-22 | `battery()` windows acconnected improvement |
|
||||
| 4.14.6 | 2019-08-22 | `users()` improved date time parsing |
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.14.9</th>
|
||||
<td>2019-10-01</td>
|
||||
<td><span class="code">processLoad()</span> fix windows</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.14.8</th>
|
||||
<td>2019-08-23</td>
|
||||
|
||||
@ -168,7 +168,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span></div>
|
||||
<div class="version">Current Version: <span id="version">4.14.8</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.14.9</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">
|
||||
|
||||
@ -867,9 +867,11 @@ function processLoad(proc, callback) {
|
||||
let resultProcess = calcProcStatWin(procStats[i], allcpuu + allcpus, _process_cpu);
|
||||
|
||||
// store pcpu in outer array
|
||||
let listPos = result.pids.indexOf(resultProcess.pid);
|
||||
if (listPos >= 0) {
|
||||
result.cpu = resultProcess.pcpuu + resultProcess.pcpus;
|
||||
if (result && result.pids && result.pids.length > 0) {
|
||||
let listPos = result.pids.indexOf(resultProcess.pid);
|
||||
if (listPos >= 0) {
|
||||
result.cpu = resultProcess.pcpuu + resultProcess.pcpus;
|
||||
}
|
||||
}
|
||||
|
||||
// save new values
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user