fsSize() fixed missing rw property (windows)

This commit is contained in:
Sebastian Hildebrandt 2023-07-26 10:24:38 +02:00
parent 9e3ab2beaf
commit 180f671bb8
4 changed files with 9 additions and 3 deletions

View File

@ -82,7 +82,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment | | Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- | | ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.18.7 | 2023-07-25 | `cpu()` added AMD ZEN 4 base frequencies | | 5.18.9 | 2023-07-26 | `fsSize()` fixed missing rw property (windows) |
| 5.18.8 | 2023-07-25 | `cpu()` added AMD ZEN 4 base frequencies |
| 5.18.7 | 2023-07-12 | `osInfo()` added macOS Sonoma code name (mac OS) | | 5.18.7 | 2023-07-12 | `osInfo()` added macOS Sonoma code name (mac OS) |
| 5.18.6 | 2023-06-28 | `graphics()` fixed catched errors (mac OS) | | 5.18.6 | 2023-06-28 | `graphics()` fixed catched errors (mac OS) |
| 5.18.5 | 2023-06-26 | `cpu()` fixed parsing (mac OS) | | 5.18.5 | 2023-06-26 | `cpu()` fixed parsing (mac OS) |

View File

@ -57,6 +57,11 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr>
<th scope="row">5.18.9</th>
<td>2023-07-26</td>
<td><span class="code">fsSize()</span> fixed missing rw property (windows)</td>
</tr>
<tr> <tr>
<th scope="row">5.18.8</th> <th scope="row">5.18.8</th>
<td>2023-07-25</td> <td>2023-07-25</td>

View File

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

View File

@ -191,7 +191,7 @@ function fsSize(drive, callback) {
} }
if (_windows) { if (_windows) {
try { try {
const cmd = `Get-WmiObject Win32_logicaldisk | select Caption,FileSystem,FreeSpace,Size ${drive ? '| where -property Caption -eq ' + drive : ''} | fl`; const cmd = `Get-WmiObject Win32_logicaldisk | select Access,Caption,FileSystem,FreeSpace,Size ${drive ? '| where -property Caption -eq ' + drive : ''} | fl`;
util.powerShell(cmd).then((stdout, error) => { util.powerShell(cmd).then((stdout, error) => {
if (!error) { if (!error) {
let devices = stdout.toString().split(/\n\s*\n/); let devices = stdout.toString().split(/\n\s*\n/);