mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-30 20:50:02 +02:00
Fixed check-swap-space.ps1
This commit is contained in:
@ -32,7 +32,7 @@ try {
|
||||
|
||||
if ($IsLinux) {
|
||||
$Result = $(free --mega | grep Swap:)
|
||||
[int64]$total = $Result.subString(5,14)
|
||||
[int64]$total = $Result.subString(5,15)
|
||||
[int64]$used = $Result.substring(20,13)
|
||||
[int64]$free = $Result.substring(32,11)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user