processes() fixed issue truncated params
This commit is contained in:
parent
40b16dac9a
commit
be0a5c66af
@ -72,6 +72,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 5.2.5 | 2020-02-11 | `processes()` fixed truncated params (linux) |
|
||||||
| 5.2.4 | 2020-02-11 | `currentLoad()` fixed issue |
|
| 5.2.4 | 2020-02-11 | `currentLoad()` fixed issue |
|
||||||
| 5.2.3 | 2020-02-11 | `diskLayout()` added USB drives (mac OS) |
|
| 5.2.3 | 2020-02-11 | `diskLayout()` added USB drives (mac OS) |
|
||||||
| 5.2.2 | 2020-02-11 | code cleanup, updated docs |
|
| 5.2.2 | 2020-02-11 | code cleanup, updated docs |
|
||||||
|
|||||||
@ -56,6 +56,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">5.2.5</th>
|
||||||
|
<td>2020-02-11</td>
|
||||||
|
<td><span class="code">processes()</span> fix truncated params (linux)</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">5.2.4</th>
|
<th scope="row">5.2.4</th>
|
||||||
<td>2020-02-11</td>
|
<td>2020-02-11</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.2.4</span></div>
|
<div class="version">New Version: <span id="version">5.2.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>
|
<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">
|
||||||
|
|||||||
@ -525,12 +525,13 @@ function processes(callback) {
|
|||||||
checkColumn(11);
|
checkColumn(11);
|
||||||
const user = line.substring(parsedhead[11].from + offset, parsedhead[11].to + offset2).trim();
|
const user = line.substring(parsedhead[11].from + offset, parsedhead[11].to + offset2).trim();
|
||||||
checkColumn(12);
|
checkColumn(12);
|
||||||
let fullcommand = line.substring(parsedhead[12].from + offset, parsedhead[12].to + offset2).trim();
|
|
||||||
if (fullcommand.substr(0, 1) === '[') { fullcommand = fullcommand.substring(1); }
|
|
||||||
if (fullcommand.substr(fullcommand.length - 1) === ']') { fullcommand = fullcommand.slice(0, -1); }
|
|
||||||
let cmdPath = '';
|
let cmdPath = '';
|
||||||
let command = '';
|
let command = '';
|
||||||
let params = '';
|
let params = '';
|
||||||
|
let fullcommand = line.substring(parsedhead[12].from + offset, parsedhead[12].to + offset2).trim();
|
||||||
|
if (fullcommand.substr(fullcommand.length - 1) === ']') { fullcommand = fullcommand.slice(0, -1); }
|
||||||
|
if (fullcommand.substr(0, 1) === '[') { command = fullcommand.substring(1); }
|
||||||
|
else {
|
||||||
// try to figure out where parameter starts
|
// try to figure out where parameter starts
|
||||||
let firstParamPos = fullcommand.indexOf(' -');
|
let firstParamPos = fullcommand.indexOf(' -');
|
||||||
let firstParamPathPos = fullcommand.indexOf(' /');
|
let firstParamPathPos = fullcommand.indexOf(' /');
|
||||||
@ -558,6 +559,7 @@ function processes(callback) {
|
|||||||
command = tmpCommand.trim();
|
command = tmpCommand.trim();
|
||||||
params = tmpParams.trim();
|
params = tmpParams.trim();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return ({
|
return ({
|
||||||
pid: pid,
|
pid: pid,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user