fixed a small bug in a regex

This commit is contained in:
Jordi Sanfeliu 2013-07-19 10:42:36 +02:00
parent 893076690b
commit b74fd5b36a
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ sub phpapc_update {
my ($used) = ($data =~ m/<\/span>Used:\s+.*?\((\d+\.\d+)%\)<\/td>/);
my ($missed) = ($data =~ m/<\/span>Misses:\s+.*?\((\d+\.\d+)%\)<\/td>/);
my ($cachf, $cachs, $cache_suffix) = ($data =~ m/<h2>File Cache Information<\/h2>.*?Cached Files<\/td><td>(\d+)\s+\(\s+(\d+\.\d+)\s+(\S+Bytes)\)/);
my ($cachf, $cachs, $cache_suffix) = ($data =~ m/<h2>File Cache Information<\/h2>.*?Cached Files<\/td><td>(\d+)\s+\(\s*(\d+\.\d+)\s+(\S+Bytes)\)/);
my $str = $e . "cachf";
my $cachfps = $cachf - ($config->{phpapc}->{$str} || 0);
$cachfps = 0 unless $cachfps != $cachf;