Updated some scripts

This commit is contained in:
Markus Fleschutz
2024-01-27 09:55:14 +01:00
parent 1e227f3ba4
commit abb97e1c9f
4 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@
Specifies the minimum level in GB (10 GB by default)
.EXAMPLE
PS> ./check-swap-space.ps1
✅ Swap space uses 42%, 748MB free of 1GB
✅ Swap space uses 42% of 1GB · 748MB free
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -53,7 +53,7 @@ try {
Write-Output "✅ Swap space unused, $(MB2String $Free) free"
} else {
[int]$Percent = ($Used * 100) / $Total
Write-Output "✅ Swap space uses $Percent%, $(MB2String $Free) free of $(MB2String $Total)"
Write-Output "✅ Swap space uses $Percent% of $(MB2String $Total) · $(MB2String $Free) free"
}
exit 0 # success
} catch {