mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-29 22:48:50 +02:00
Improve check-swap-space.ps1
This commit is contained in:
parent
d3b6934da7
commit
3a0daeb85a
@ -23,6 +23,10 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($Total -eq "0") {
|
||||||
|
write-warning "No swap space configured!"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
if ($Free -lt $MinLevel) {
|
if ($Free -lt $MinLevel) {
|
||||||
write-warning "Swap space has only $Free GB left to use! ($Used GB out of $Total GB in use, minimum is $MinLevel GB)"
|
write-warning "Swap space has only $Free GB left to use! ($Used GB out of $Total GB in use, minimum is $MinLevel GB)"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user