Update check-swap-swap.ps1

This commit is contained in:
Markus Fleschutz 2022-10-09 19:21:41 +02:00
parent 945914a326
commit 107b807e22

View File

@ -21,7 +21,7 @@ try {
$Result = $(free --mega | grep Swap:)
[int]$Total = $Result.subString(5,14)
[int]$Used = $Result.substring(20,13)
[int]$Free = $Result.substring(31,12)
[int]$Free = $Result.substring(32,11)
} else {
$Items = get-wmiobject -class "Win32_PageFileUsage" -namespace "root\CIMV2" -computername localhost
foreach ($Item in $Items) {