From 9c2bcc5861e974b65c66ee8b5f8f1e2e25fa4174 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 26 Feb 2025 20:49:04 +0100 Subject: [PATCH] Updated check-swap-space.ps1 --- scripts/check-swap-space.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/check-swap-space.ps1 b/scripts/check-swap-space.ps1 index 64b72b58..597b7926 100755 --- a/scripts/check-swap-space.ps1 +++ b/scripts/check-swap-space.ps1 @@ -46,16 +46,16 @@ try { [int64]$free = ($total - $used) } if ($total -eq 0) { - Write-Output "⚠️ No swap space configured" + Write-Output "⚠️ No swap space configured." } elseif ($free -eq 0) { - Write-Output "⚠️ Swap space with $(MB2String $total) is FULL !!!" + Write-Output "⚠️ Swap space of $(MB2String $total) is FULL!" } elseif ($free -lt $minLevel) { Write-Output "⚠️ Swap space has only $(MB2String $free) of $(MB2String $total) left!" } elseif ($used -lt 3) { - Write-Output "✅ Swap space has $(MB2String $total) reserved" + Write-Output "✅ Swap space has $(MB2String $total) reserved." } else { [int64]$percent = ($used * 100) / $total - Write-Output "✅ Swap space uses $(MB2String $used) ($percent%) of $(MB2String $total)" + Write-Output "✅ Swap space at $(MB2String $used) ($percent%) of $(MB2String $total)." } exit 0 # success } catch {