currentLoad() improved parsing (linux)
This commit is contained in:
parent
3a558b27e3
commit
bf5df7f63e
@ -83,6 +83,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||||
|
| 5.21.16 | 2023-11-09 | `currentLoad()` improved parsing (linux) |
|
||||||
| 5.21.15 | 2023-10-27 | `wifiConnections()` improved parsing (linux) |
|
| 5.21.15 | 2023-10-27 | `wifiConnections()` improved parsing (linux) |
|
||||||
| 5.21.14 | 2023-10-26 | `execSync()` added explicit encoding (linux) |
|
| 5.21.14 | 2023-10-26 | `execSync()` added explicit encoding (linux) |
|
||||||
| 5.21.13 | 2023-10-21 | `system()` Raspberry Pi 5 detection |
|
| 5.21.13 | 2023-10-21 | `system()` Raspberry Pi 5 detection |
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
[![MIT license][license-img]][license-url]
|
[![MIT license][license-img]][license-url]
|
||||||
|
|
||||||
## The Systeminformation Project
|
## The Systeminformation Project
|
||||||
This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 600 versions published, up to 8 mio downloads per month, > 200 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
|
This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 600 versions published, up to 8 mio downloads per month, > 220 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
|
||||||
|
|
||||||
## Please support this project ... ☕️
|
## Please support this project ... ☕️
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ The new Version 5 is here - this next major version release 5.0 comes with new f
|
|||||||
- better uuid function to get unique hardware and OS UUIDs
|
- better uuid function to get unique hardware and OS UUIDs
|
||||||
- better/extended cpu info detection
|
- better/extended cpu info detection
|
||||||
- better/extended system info detection
|
- better/extended system info detection
|
||||||
- Apple Silicon M1 support
|
- Apple Silicon M1/M2/M3 support
|
||||||
- better Raspberry-PI detection
|
- better Raspberry-PI detection
|
||||||
- systeminformation website updated and extended with full documentation and examples [systeminformation.io][systeminformation-url]
|
- systeminformation website updated and extended with full documentation and examples [systeminformation.io][systeminformation-url]
|
||||||
- lot of minor improvements
|
- lot of minor improvements
|
||||||
@ -935,7 +935,7 @@ To be able to measure temperature on macOS I created a little additional package
|
|||||||
in NPM with `optionalDependencies` I unfortunately was getting unexpected warnings on other platforms.
|
in NPM with `optionalDependencies` I unfortunately was getting unexpected warnings on other platforms.
|
||||||
So I decided to drop this optional dependency for macOS - so by default, you will not get correct values.
|
So I decided to drop this optional dependency for macOS - so by default, you will not get correct values.
|
||||||
|
|
||||||
This additional package is now also supporting Apple Silicon M1 machines.
|
This additional package is now also supporting Apple Silicon M1/M2/M3 machines.
|
||||||
|
|
||||||
But if you need to detect macOS temperature just run the following additional
|
But if you need to detect macOS temperature just run the following additional
|
||||||
installation command:
|
installation command:
|
||||||
|
|||||||
@ -57,6 +57,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">5.21.16</th>
|
||||||
|
<td>2023-11-09</td>
|
||||||
|
<td><span class="code">currentLoad()</span> improved parsing (linux)</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">5.21.15</th>
|
<th scope="row">5.21.15</th>
|
||||||
<td>2023-10-27</td>
|
<td>2023-10-27</td>
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
<img class="logo" src="assets/logo.png" alt="logo">
|
<img class="logo" src="assets/logo.png" alt="logo">
|
||||||
<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.21.15</span></div>
|
<div class="version">New Version: <span id="version">5.21.16</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">
|
||||||
@ -212,7 +212,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">659</div>
|
<div class="numbers">663</div>
|
||||||
<div class="title">Dependents</div>
|
<div class="title">Dependents</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1604,7 +1604,7 @@ function getLoad() {
|
|||||||
// linux: try to get other cpu stats
|
// linux: try to get other cpu stats
|
||||||
if (_linux) {
|
if (_linux) {
|
||||||
try {
|
try {
|
||||||
const lines = execSync('cat /proc/stat 2>/dev/null | grep cpu').toString().split('\n');
|
const lines = execSync('cat /proc/stat 2>/dev/null | grep cpu', { encoding: 'utf8' }).toString().split('\n');
|
||||||
if (lines.length > 1) {
|
if (lines.length > 1) {
|
||||||
lines.shift();
|
lines.shift();
|
||||||
if (lines.length === cpus.length) {
|
if (lines.length === cpus.length) {
|
||||||
|
|||||||
@ -211,7 +211,7 @@ function services(srv, callback) {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
ps = lines.filter(function (e) {
|
ps = lines.filter(function (e) {
|
||||||
return (e.toLowerCase().indexOf(' ' + srv + ':') !== -1) || (e.toLowerCase().indexOf('/' + srv) !== -1);
|
return (e.toLowerCase().indexOf(' ' + srv.toLowerCase() + ':') !== -1) || (e.toLowerCase().indexOf('/' + srv.toLowerCase()) !== -1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const pids = [];
|
const pids = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user