fixed regexp in 'free' command output that affected the swap usage value (after upgrading to CentOS 6.7)

This commit is contained in:
Jordi Sanfeliu 2015-09-16 10:57:27 +02:00
parent d2465c2356
commit f104162298
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ sub fs_update {
if($config->{os} eq "Linux") {
open(IN, "free |");
while(<IN>) {
if(/^Swap:\s+\d+\s+(\d+)\s+(\d+)$/) {
if(/^Swap:\s+\d+\s+(\d+)\s+(\d+)\s*$/) {
$used = $1;
$free = $2;
}