memLayout() fix memsize linux (modules >= 32 GB)
This commit is contained in:
parent
1d5737aae1
commit
564904e756
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 4.18.2 | 2020-01-10 | `memLayout()` fix memsize linux (modules >= 32 GB) |
|
||||||
| 4.18.1 | 2020-01-07 | updated docs |
|
| 4.18.1 | 2020-01-07 | updated docs |
|
||||||
| 4.18.0 | 2020-01-07 | `networkInterfaces()` added dhcp for mac os, added dhcp linux fallback |
|
| 4.18.0 | 2020-01-07 | `networkInterfaces()` added dhcp for mac os, added dhcp linux fallback |
|
||||||
| 4.17.3 | 2020-01-05 | code cleanup |
|
| 4.17.3 | 2020-01-05 | code cleanup |
|
||||||
|
|||||||
@ -98,13 +98,13 @@ si.cpu()
|
|||||||
|
|
||||||
(last 7 major and minor version releases)
|
(last 7 major and minor version releases)
|
||||||
|
|
||||||
|
- Version 4.18.0: `networkInterfaces()` added dhcp for mac os, added dhcp linux fallback
|
||||||
- Version 4.17.0: `networkInterfaces()` added dhcp, dnsSuffix, ieee8021xAuth, ieee8021xState
|
- Version 4.17.0: `networkInterfaces()` added dhcp, dnsSuffix, ieee8021xAuth, ieee8021xState
|
||||||
- Version 4.16.0: `networkGatewayDefault()` added
|
- Version 4.16.0: `networkGatewayDefault()` added
|
||||||
- Version 4.15.0: `cpu()` added governor (linux)
|
- Version 4.15.0: `cpu()` added governor (linux)
|
||||||
- Version 4.14.0: `processes()` added process path and params
|
- Version 4.14.0: `processes()` added process path and params
|
||||||
- Version 4.13.0: `networkConnections()` added PID, process
|
- Version 4.13.0: `networkConnections()` added PID, process
|
||||||
- Version 4.12.0: `networkInterfaces()` added property virtual
|
- Version 4.12.0: `networkInterfaces()` added property virtual
|
||||||
- Version 4.11.0: `wifiNetworks()` added available wifi networks
|
|
||||||
- ...
|
- ...
|
||||||
|
|
||||||
You can find all changes here: [detailed changelog][changelog-url]
|
You can find all changes here: [detailed changelog][changelog-url]
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">4.18.2</th>
|
||||||
|
<td>2020-01-10</td>
|
||||||
|
<td><span class="code">memLayout()</span> fix memsize linux (modules >= 32 GB)</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.18.1</th>
|
<th scope="row">4.18.1</th>
|
||||||
<td>2020-01-07</td>
|
<td>2020-01-07</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.18.1</span></div>
|
<div class="version">Current Version: <span id="version">4.18.2</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">
|
||||||
@ -199,7 +199,7 @@
|
|||||||
<div class="title">Downloads last month</div>
|
<div class="title">Downloads last month</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||||
<div class="numbers">234</div>
|
<div class="numbers">235</div>
|
||||||
<div class="title">Dependends</div>
|
<div class="title">Dependends</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -281,9 +281,11 @@ function memLayout(callback) {
|
|||||||
devices.shift();
|
devices.shift();
|
||||||
devices.forEach(function (device) {
|
devices.forEach(function (device) {
|
||||||
let lines = device.split('\n');
|
let lines = device.split('\n');
|
||||||
|
const sizeString = util.getValue(lines, 'Size');
|
||||||
|
const size = sizeString.indexOf('GB') >= 0 ? parseInt(sizeString, 10) * 1024 * 1024 * 1024 : parseInt(sizeString, 10) * 1024 * 1024;
|
||||||
if (parseInt(util.getValue(lines, 'Size'), 10) > 0) {
|
if (parseInt(util.getValue(lines, 'Size'), 10) > 0) {
|
||||||
result.push({
|
result.push({
|
||||||
size: parseInt(util.getValue(lines, 'Size'), 10) * 1024 * 1024,
|
size,
|
||||||
bank: util.getValue(lines, 'Bank Locator'),
|
bank: util.getValue(lines, 'Bank Locator'),
|
||||||
type: util.getValue(lines, 'Type:'),
|
type: util.getValue(lines, 'Type:'),
|
||||||
clockSpeed: (util.getValue(lines, 'Configured Clock Speed:') ? parseInt(util.getValue(lines, 'Configured Clock Speed:'), 10) : (util.getValue(lines, 'Speed:') ? parseInt(util.getValue(lines, 'Speed:'), 10) : -1)),
|
clockSpeed: (util.getValue(lines, 'Configured Clock Speed:') ? parseInt(util.getValue(lines, 'Configured Clock Speed:'), 10) : (util.getValue(lines, 'Speed:') ? parseInt(util.getValue(lines, 'Speed:'), 10) : -1)),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user