fixed the statistics tag for BIND v9.9+

This commit is contained in:
Jordi Sanfeliu 2013-09-26 09:21:16 +02:00
parent fb77bba5ea
commit eeabf9da97
1 changed files with 1 additions and 2 deletions

View File

@ -261,11 +261,10 @@ sub bind_update {
# BIND v9.9+ has different statistics layout than BIND v9.5+,
# so attempt first to get stats from a BIND v9.9+
if(!($value = $data->{version})) {
if(!($value = $data->{'statistics version'})) {
# otherwise attempt it on a BIND v9.5+
$value = $data->{bind}->{statistics}->{version};
}
my ($major, $minor) = split('\.', $value);
$minor =~ m/^(\d+)/;
if(!grep {$_ eq $major} ("2", "3")) {