fixed a bug in the regexp of memory graph in OpenBSD

This commit is contained in:
Jordi Sanfeliu 2015-08-03 10:22:11 +02:00
parent 24422556a8
commit 06f8ec9e86
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ sub system_update {
}
}
if($config->{os} eq "OpenBSD") {
if(/^Memory: Real: (\d+)\w\/\d+\w act\/tot Free: (\d+)\w /) {
if(/^Memory:\s+Real:\s+(\d+)\w\/\d+\w\s+act\/tot\s+Free:\s+(\d+)\w\s+/) {
$macti = $1;
$mfree = $2;
$macti = int($macti) * 1024;