systeminformation 5.30.1 → 5.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/processes.js +2 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -185,7 +185,7 @@ si.cpu()
|
|
|
185
185
|
|
|
186
186
|
(last 7 major and minor version releases)
|
|
187
187
|
|
|
188
|
-
- Version 5.30.0: `processes()` added user (windows)
|
|
188
|
+
- Version 5.30.0: `processes()` added user (windows) - needed to be reverted
|
|
189
189
|
- Version 5.29.0: `osInfo()` added OS code name (windows)
|
|
190
190
|
- Version 5.28.0: `cpuTemperature()` added suppurt for macos-temperature-sensor (macOS)
|
|
191
191
|
- Version 5.27.0: `mem()` added reclaimable memory
|
package/lib/processes.js
CHANGED
|
@@ -935,10 +935,7 @@ function processes(callback) {
|
|
|
935
935
|
util
|
|
936
936
|
.powerShell(
|
|
937
937
|
`Get-CimInstance Win32_Process | select-Object ProcessId,ParentProcessId,ExecutionState,Caption,CommandLine,ExecutablePath,UserModeTime,KernelModeTime,WorkingSetSize,Priority,PageFileUsage,
|
|
938
|
-
@{n="CreationDate";e={$_.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")}}
|
|
939
|
-
@{n="User";e={$OwnerInfo = Invoke-CimMethod -InputObject $_ -MethodName GetOwner
|
|
940
|
-
if($OwnerInfo.ReturnValue -eq 0) {"$($OwnerInfo.Domain)\\$($OwnerInfo.User)"} else {""}
|
|
941
|
-
}} | ConvertTo-Json -compress`
|
|
938
|
+
@{n="CreationDate";e={$_.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")}} | ConvertTo-Json -compress`
|
|
942
939
|
)
|
|
943
940
|
.then((stdout, error) => {
|
|
944
941
|
if (!error) {
|
|
@@ -963,7 +960,6 @@ function processes(callback) {
|
|
|
963
960
|
const utime = element.UserModeTime;
|
|
964
961
|
const stime = element.KernelModeTime;
|
|
965
962
|
const memw = element.WorkingSetSize;
|
|
966
|
-
const user = element.User;
|
|
967
963
|
allcpuu = allcpuu + utime;
|
|
968
964
|
allcpus = allcpus + stime;
|
|
969
965
|
result.all++;
|
|
@@ -1000,7 +996,7 @@ function processes(callback) {
|
|
|
1000
996
|
started: element.CreationDate,
|
|
1001
997
|
state: statusValue ? _winStatusValues[statusValue] : _winStatusValues[0],
|
|
1002
998
|
tty: '',
|
|
1003
|
-
user,
|
|
999
|
+
user: '',
|
|
1004
1000
|
command: commandLine || name,
|
|
1005
1001
|
path: commandPath,
|
|
1006
1002
|
params: ''
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.30.
|
|
3
|
+
"version": "5.30.2",
|
|
4
4
|
"description": "Advanced, lightweight system and OS information library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",
|