From fcc4e168a12f3ab3f3eaa899c593acdb94cf7151 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Wed, 15 Jan 2014 19:29:36 +0100 Subject: [PATCH] Small fix to complete support for PHP APC 4.0 #36 --- lib/phpapc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phpapc.pm b/lib/phpapc.pm index f6c39c8..875ebe8 100644 --- a/lib/phpapc.pm +++ b/lib/phpapc.pm @@ -164,7 +164,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 (undef, $cachf, $cachs, $cache_suffix) = ($data =~ m/

File Cache Information<\/h2>.*?Cached (Files|Variables)<\/td>(\d+)\s+\(\s*(\d+\.\d+)\s+(\S+Bytes)\)/); + my (undef, $cachf, $cachs, $cache_suffix) = ($data =~ m/

.*?Cache Information<\/h2>.*?Cached (Files|Variables)<\/td>(\d+)\s+\(\s*(\d+\.\d+)\s+(\S+Bytes)\)/); my $str = $e . "cachf"; my $cachfps = $cachf - ($config->{phpapc_hist}->{$str} || 0); $cachfps = 0 unless $cachfps != $cachf;