From 327c79a26e19bd83532c7650b9de65aff5f1726f Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 8 Jan 2026 08:45:44 +0100 Subject: [PATCH] processes() revert added user (windows) --- CHANGELOG.md | 3 ++- README.md | 2 +- docs/history.html | 5 +++++ docs/index.html | 2 +- docs/processes.html | 2 +- lib/processes.js | 8 ++------ 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24853aa..0aeda96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,7 +90,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | -| 5.30.1 | 2026-01-07 | `networkInterfaces()`, `users()` improved date parsing (linux). | +| 5.30.2 | 2026-01-08 | `processes()` revert added user (windows) | +| 5.30.1 | 2026-01-07 | `networkInterfaces()`, `users()` improved date parsing (linux) | | 5.30.0 | 2026-01-06 | `processes()` added user (windows) | | 5.29.1 | 2026-01-05 | `fsSize()` support network attached storage (linux) | | 5.29.0 | 2026-01-04 | `osInfo()` added OS code name (windows) | diff --git a/README.md b/README.md index 3a865b6..5ac4062 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ si.cpu() (last 7 major and minor version releases) -- Version 5.30.0: `processes()` added user (windows) +- Version 5.30.0: `processes()` added user (windows) - needed to be reverted - Version 5.29.0: `osInfo()` added OS code name (windows) - Version 5.28.0: `cpuTemperature()` added suppurt for macos-temperature-sensor (macOS) - Version 5.27.0: `mem()` added reclaimable memory diff --git a/docs/history.html b/docs/history.html index 8ac088f..c6912c3 100644 --- a/docs/history.html +++ b/docs/history.html @@ -59,6 +59,11 @@ 5.30.2 + 2026-01-08 + processes() reverted added users (windows) + + + 5.30.1 2026-01-07 users() improved date parsing (linux) diff --git a/docs/index.html b/docs/index.html index bdaa1a1..8fe5140 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.30.1
+
New Version: 5.30.3
diff --git a/docs/processes.html b/docs/processes.html index cb2684d..083e568 100644 --- a/docs/processes.html +++ b/docs/processes.html @@ -459,7 +459,7 @@ si.currentLoad().then(data => console.log(data)); X X X - X + X user who started process diff --git a/lib/processes.js b/lib/processes.js index 01f24ec..a3e60c8 100644 --- a/lib/processes.js +++ b/lib/processes.js @@ -935,10 +935,7 @@ function processes(callback) { util .powerShell( `Get-CimInstance Win32_Process | select-Object ProcessId,ParentProcessId,ExecutionState,Caption,CommandLine,ExecutablePath,UserModeTime,KernelModeTime,WorkingSetSize,Priority,PageFileUsage, - @{n="CreationDate";e={$_.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")}}, - @{n="User";e={$OwnerInfo = Invoke-CimMethod -InputObject $_ -MethodName GetOwner - if($OwnerInfo.ReturnValue -eq 0) {"$($OwnerInfo.Domain)\\$($OwnerInfo.User)"} else {""} - }} | ConvertTo-Json -compress` + @{n="CreationDate";e={$_.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")}} | ConvertTo-Json -compress` ) .then((stdout, error) => { if (!error) { @@ -963,7 +960,6 @@ function processes(callback) { const utime = element.UserModeTime; const stime = element.KernelModeTime; const memw = element.WorkingSetSize; - const user = element.User; allcpuu = allcpuu + utime; allcpus = allcpus + stime; result.all++; @@ -1000,7 +996,7 @@ function processes(callback) { started: element.CreationDate, state: statusValue ? _winStatusValues[statusValue] : _winStatusValues[0], tty: '', - user, + user: '', command: commandLine || name, path: commandPath, params: ''