diff --git a/lib/fs.pm b/lib/fs.pm index 74800e2..2634a87 100644 --- a/lib/fs.pm +++ b/lib/fs.pm @@ -595,7 +595,7 @@ sub fs_update { if($config->{os} eq "Linux") { open(IN, "free |"); while() { - if(/^Swap:\s+\d+\s+(\d+)\s+(\d+)$/) { + if(/^Swap:\s+\d+\s+(\d+)\s+(\d+)\s*$/) { $used = $1; $free = $2; }