Small fix to complete support for PHP APC 4.0 #36

This commit is contained in:
Jordi Sanfeliu 2014-01-15 19:29:36 +01:00
parent 46a93297ca
commit fcc4e168a1
1 changed files with 1 additions and 1 deletions

View File

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