processes() improved parsing of all services (linux)

This commit is contained in:
Sebastian Hildebrandt 2023-01-29 20:34:50 +01:00
parent b82df5427b
commit 1eaf7d907b
4 changed files with 11 additions and 5 deletions

View File

@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.17.5 | 2023-01-29 | `processes()` improved parsing of all services (linux) |
| 5.17.4 | 2023-01-24 | `networkInterfaces()` sanitizing networkInterfaces device names |
| 5.17.3 | 2023-01-10 | `processes()` fix elapsed time parsing (linux) |
| 5.17.2 | 2023-01-10 | `utils` fix killing powershell (windows) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.17.5</th>
<td>2023-01-29</td>
<td><span class="code">processes()</span> improved parsing of all services (linux)</td>
</tr>
<tr>
<th scope="row">5.17.4</th>
<td>2023-01-24</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.17.4</span></div>
<div class="version">New Version: <span id="version">5.17.5</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">
@ -204,7 +204,7 @@
</div>
<div class="row number-section">
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">15,452</div>
<div class="numbers">15,483</div>
<div class="title">Lines of code</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
@ -212,7 +212,7 @@
<div class="title">Downloads last month</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">588</div>
<div class="numbers">590</div>
<div class="title">Dependents</div>
</div>
</div>

View File

@ -151,11 +151,11 @@ function services(srv, callback) {
if (_linux || _freebsd || _openbsd || _netbsd || _darwin) {
if ((_linux || _freebsd || _openbsd || _netbsd) && srvString === '*') {
try {
const tmpsrv = execSync('systemctl --type=service --no-legend 2> /dev/null').toString().split('\n');
const tmpsrv = execSync('systemctl --all --type=service --no-legend 2> /dev/null').toString().split('\n');
srvs = [];
for (const s of tmpsrv) {
const name = s.split('.service')[0];
if (name) {
if (name && s.indexOf(' not-found ') === -1) {
srvs.push(name.trim());
}
}