mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 09:28:21 +02:00
Update check-swap-space.ps1
This commit is contained in:
parent
fc8919c7b0
commit
c8f6edfe04
@ -52,7 +52,7 @@ try {
|
|||||||
} elseif ($free -lt $minLevel) {
|
} elseif ($free -lt $minLevel) {
|
||||||
Write-Output "⚠️ Swap space has only $(MB2String $free) of $(MB2String $total) free"
|
Write-Output "⚠️ Swap space has only $(MB2String $free) of $(MB2String $total) free"
|
||||||
} elseif ($used -lt 5) {
|
} elseif ($used -lt 5) {
|
||||||
Write-Output "✅ Swap space has the full $(MB2String $free) free"
|
Write-Output "✅ Swap space has all $(MB2String $free) free"
|
||||||
} else {
|
} else {
|
||||||
[int64]$percent = ($used * 100) / $total
|
[int64]$percent = ($used * 100) / $total
|
||||||
Write-Output "✅ Swap space has $(MB2String $free) free ($percent% of $(MB2String $total) used)"
|
Write-Output "✅ Swap space has $(MB2String $free) free ($percent% of $(MB2String $total) used)"
|
||||||
|
Loading…
Reference in New Issue
Block a user