From 107b807e22ac7739d45bbb190895dace14151141 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sun, 9 Oct 2022 19:21:41 +0200 Subject: [PATCH] Update check-swap-swap.ps1 --- Scripts/check-swap-space.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/check-swap-space.ps1 b/Scripts/check-swap-space.ps1 index 4d0b115c..2025d4d5 100755 --- a/Scripts/check-swap-space.ps1 +++ b/Scripts/check-swap-space.ps1 @@ -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) {