Adding windows memory calcuclations
This commit is contained in:
parent
c6bee49dd7
commit
b33a39144d
1 changed files with 8 additions and 0 deletions
|
@ -352,6 +352,14 @@ sub os_setup {
|
|||
chomp($swap_memory);
|
||||
$swap_memory = $swap_memory * 1024 * 1024;
|
||||
}
|
||||
elsif( $os =~ /windows/i ) {
|
||||
$physical_memory =
|
||||
`wmic ComputerSystem get TotalPhysicalMemory | perl -ne "chomp; print if /[0-9]+/;"`
|
||||
or memerror;
|
||||
$swap_memory =
|
||||
`wmic OS get FreeVirtualMemory | perl -ne "chomp; print if /[0-9]+/;"`
|
||||
or memerror;
|
||||
}
|
||||
}
|
||||
debugprint "Physical Memory: $physical_memory";
|
||||
debugprint "Swap Memory: $swap_memory";
|
||||
|
|
Loading…
Reference in a new issue