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 |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 4.14.9 | 2019-10-01 | `processLoad()` fix windows |
|
||||||
| 4.14.8 | 2019-08-22 | `parseDateTime()` fix coding error |
|
| 4.14.8 | 2019-08-22 | `parseDateTime()` fix coding error |
|
||||||
| 4.14.7 | 2019-08-22 | `battery()` windows acconnected improvement |
|
| 4.14.7 | 2019-08-22 | `battery()` windows acconnected improvement |
|
||||||
| 4.14.6 | 2019-08-22 | `users()` improved date time parsing |
|
| 4.14.6 | 2019-08-22 | `users()` improved date time parsing |
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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>
|
<tr>
|
||||||
<th scope="row">4.14.8</th>
|
<th scope="row">4.14.8</th>
|
||||||
<td>2019-08-23</td>
|
<td>2019-08-23</td>
|
||||||
|
|||||||
@ -168,7 +168,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">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>
|
<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">
|
||||||
|
|||||||
@ -867,9 +867,11 @@ function processLoad(proc, callback) {
|
|||||||
let resultProcess = calcProcStatWin(procStats[i], allcpuu + allcpus, _process_cpu);
|
let resultProcess = calcProcStatWin(procStats[i], allcpuu + allcpus, _process_cpu);
|
||||||
|
|
||||||
// store pcpu in outer array
|
// store pcpu in outer array
|
||||||
let listPos = result.pids.indexOf(resultProcess.pid);
|
if (result && result.pids && result.pids.length > 0) {
|
||||||
if (listPos >= 0) {
|
let listPos = result.pids.indexOf(resultProcess.pid);
|
||||||
result.cpu = resultProcess.pcpuu + resultProcess.pcpus;
|
if (listPos >= 0) {
|
||||||
|
result.cpu = resultProcess.pcpuu + resultProcess.pcpus;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// save new values
|
// save new values
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user