cpuCache() fix (windows)
This commit is contained in:
parent
4d2027d770
commit
bac127bcb6
@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 5.9.15 | 2021-11-19 | `cpuCache()` fix (windows) |
|
||||||
| 5.9.14 | 2021-11-17 | `versions()` python 2 monterey (deprecated warning) fix (mac OS) |
|
| 5.9.14 | 2021-11-17 | `versions()` python 2 monterey (deprecated warning) fix (mac OS) |
|
||||||
| 5.9.13 | 2021-11-14 | `time()` timezone name, `l1 cache` improvements |
|
| 5.9.13 | 2021-11-14 | `time()` timezone name, `l1 cache` improvements |
|
||||||
| 5.9.12 | 2021-11-13 | `users()` fix data check (windows) |
|
| 5.9.12 | 2021-11-13 | `users()` fix data check (windows) |
|
||||||
|
|||||||
@ -57,6 +57,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">5.9.15</th>
|
||||||
|
<td>2021-11-19</td>
|
||||||
|
<td><span class="code">cpuCache()</span> fix (windows)</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">5.9.14</th>
|
<th scope="row">5.9.14</th>
|
||||||
<td>2021-11-17</td>
|
<td>2021-11-17</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.9.14</span></div>
|
<div class="version">New Version: <span id="version">5.9.15</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">
|
||||||
|
|||||||
10
lib/cpu.js
10
lib/cpu.js
@ -1428,16 +1428,16 @@ function cpuCache(callback) {
|
|||||||
const installedSize = util.getValue(lines, 'InstalledSize');
|
const installedSize = util.getValue(lines, 'InstalledSize');
|
||||||
// L1 Instructions
|
// L1 Instructions
|
||||||
if (level === '3' && cacheType === '3') {
|
if (level === '3' && cacheType === '3') {
|
||||||
result.cache.l1i = parseInt(installedSize, 10);
|
result.l1i = parseInt(installedSize, 10);
|
||||||
}
|
}
|
||||||
// L1 Data
|
// L1 Data
|
||||||
if (level === '3' && cacheType === '4') {
|
if (level === '3' && cacheType === '4') {
|
||||||
result.cache.l1d = parseInt(installedSize, 10);
|
result.l1d = parseInt(installedSize, 10);
|
||||||
}
|
}
|
||||||
// L1 all
|
// L1 all
|
||||||
if (level === '3' && cacheType === '5' && !result.cache.l1i && !result.cache.l1d) {
|
if (level === '3' && cacheType === '5' && !result.l1i && !result.l1d) {
|
||||||
result.cache.l1i = parseInt(installedSize, 10) / 2;
|
result.l1i = parseInt(installedSize, 10) / 2;
|
||||||
result.cache.l1d = parseInt(installedSize, 10) / 2;
|
result.l1d = parseInt(installedSize, 10) / 2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user