memLayout() improved speed parsing (windows)

This commit is contained in:
Sebastian Hildebrandt 2025-01-05 17:23:42 +01:00
parent a6cb1f5899
commit d9e9c0bb09
4 changed files with 9 additions and 3 deletions

View File

@ -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 |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.25.3</th>
<td>2024-01-05</td>
<td><span class="code">memLayout()</span> improved speed parsing (windows)</td>
</tr>
<tr>
<th scope="row">5.25.2</th>
<td>2024-01-05</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
3<div class="version">New Version: <span id="version">5.25.2</span></div>
3<div class="version">New Version: <span id="version">5.25.3</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">

View File

@ -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();