mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-26 14:26:10 +01:00
Update check-swap-swap.ps1
This commit is contained in:
parent
945914a326
commit
107b807e22
@ -21,7 +21,7 @@ try {
|
||||
$Result = $(free --mega | grep Swap:)
|
||||
[int]$Total = $Result.subString(5,14)
|
||||
[int]$Used = $Result.substring(20,13)
|
||||
[int]$Free = $Result.substring(31,12)
|
||||
[int]$Free = $Result.substring(32,11)
|
||||
} else {
|
||||
$Items = get-wmiobject -class "Win32_PageFileUsage" -namespace "root\CIMV2" -computername localhost
|
||||
foreach ($Item in $Items) {
|
||||
|
Loading…
Reference in New Issue
Block a user