mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-17 15:38:20 +02:00
Update check-swap-space.ps1
This commit is contained in:
parent
e5e76c1247
commit
b03cb29ec8
@ -44,11 +44,11 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($Total -eq 0) {
|
if ($Total -eq 0) {
|
||||||
"⚠️ No swap space!"
|
"⚠️ No swap space configured!"
|
||||||
} elseif ($Free -lt $MinLevel) {
|
} elseif ($Free -lt $MinLevel) {
|
||||||
"⚠️ Only $(MB2String $Free) of $(MB2String $Total) swap space left to use!"
|
"⚠️ Only $(MB2String $Free) of $(MB2String $Total) swap space left to use!"
|
||||||
} elseif ($Used -eq 0) {
|
} elseif ($Used -eq 0) {
|
||||||
"✅ $(MB2String $Total) swap space ready to use"
|
"✅ Swap space with $(MB2String $Total) reserved"
|
||||||
} elseif ($Used -lt $Free) {
|
} elseif ($Used -lt $Free) {
|
||||||
"✅ Swap space uses $(MB2String $Used) of $(MB2String $Total)"
|
"✅ Swap space uses $(MB2String $Used) of $(MB2String $Total)"
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user