mirror of https://github.com/mikaku/Monitorix.git
Small fix to complete support for PHP APC 4.0 #36
This commit is contained in:
parent
46a93297ca
commit
fcc4e168a1
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue