From d9e9c0bb0905cfbe8131eee6aa724333637b27f7 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Sun, 5 Jan 2025 17:23:42 +0100 Subject: [PATCH] memLayout() improved speed parsing (windows) --- CHANGELOG.md | 3 ++- docs/history.html | 5 +++++ docs/index.html | 2 +- lib/memory.js | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4bd737..4cc9209 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.25.2 | 2025-01-05 | `battery()` improved serial and model parsing | +| 5.25.3 | 2025-01-05 | `memLayout()` improved speed parsing (windows) | +| 5.25.2 | 2025-01-05 | `battery()` improved serial and model parsing (macOS) | | 5.25.1 | 2025-01-05 | `cpuCurrentSpeed()` Deno CPU speed workarround (linux) | | 5.25.0 | 2025-01-05 | `versions()` added homebrew | | 5.24.9 | 2025-01-04 | `checkWebsite()` reestablished certificate validation | diff --git a/docs/history.html b/docs/history.html index 9e2eaae..8931a88 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.25.3 + 2024-01-05 + memLayout() improved speed parsing (windows) + 5.25.2 2024-01-05 diff --git a/docs/index.html b/docs/index.html index f5141e9..b99a8cc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
- 3
New Version: 5.25.2
+ 3
New Version: 5.25.3
diff --git a/lib/memory.js b/lib/memory.js index 423cb3f..83cbbeb 100644 --- a/lib/memory.js +++ b/lib/memory.js @@ -531,7 +531,7 @@ function memLayout(callback) { const FormFactors = 'Unknown|Other|SIP|DIP|ZIP|SOJ|Proprietary|SIMM|DIMM|TSOP|PGA|RIMM|SODIMM|SRIMM|SMD|SSMP|QFP|TQFP|SOIC|LCC|PLCC|BGA|FPBGA|LGA'.split('|'); try { - util.powerShell('Get-CimInstance Win32_PhysicalMemory | select DataWidth,TotalWidth,Capacity,BankLabel,MemoryType,SMBIOSMemoryType,ConfiguredClockSpeed,FormFactor,Manufacturer,PartNumber,SerialNumber,ConfiguredVoltage,MinVoltage,MaxVoltage,Tag | fl').then((stdout, error) => { + util.powerShell('Get-CimInstance Win32_PhysicalMemory | select DataWidth,TotalWidth,Capacity,BankLabel,MemoryType,SMBIOSMemoryType,ConfiguredClockSpeed,Speed,FormFactor,Manufacturer,PartNumber,SerialNumber,ConfiguredVoltage,MinVoltage,MaxVoltage,Tag | fl').then((stdout, error) => { if (!error) { let devices = stdout.toString().split(/\n\s*\n/); devices.shift();