users() fix data check (windows)
This commit is contained in:
parent
a46a462393
commit
52598eb399
@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 5.9.12 | 2021-11-13 | `users()` fix data check (windows) |
|
||||
| 5.9.11 | 2021-11-12 | `fsStats()` fix null result (bsd) |
|
||||
| 5.9.10 | 2021-11-11 | `powerShell` transition from `wmic` (windows) |
|
||||
| 5.9.9 | 2021-10-27 | `graphics()` fixed screen resolution issue (windows) |
|
||||
|
||||
@ -57,6 +57,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.9.12</th>
|
||||
<td>2021-11-13</td>
|
||||
<td><span class="code">users()</span> fix data check (windows)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.9.11</th>
|
||||
<td>2021-11-12</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.9.11</span></div>
|
||||
<div class="version">New Version: <span id="version">5.9.12</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">
|
||||
|
||||
@ -297,6 +297,7 @@ function users(callback) {
|
||||
util.powerShell(cmd).then(data => {
|
||||
// controller + vram
|
||||
// let accounts = parseWinAccounts(data[0].split(/\n\s*\n/));
|
||||
if (data) {
|
||||
data = data.split('#-#-#-#');
|
||||
let sessions = parseWinSessions(data[0].split(/\n\s*\n/));
|
||||
let loggedons = parseWinLoggedOn(data[1].split(/\n\s*\n/));
|
||||
@ -325,6 +326,7 @@ function users(callback) {
|
||||
command: ''
|
||||
});
|
||||
});
|
||||
}
|
||||
if (callback) { callback(result); }
|
||||
resolve(result);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user