From eeabf9da97877f67c1d585949aed1944cf80278d Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Thu, 26 Sep 2013 09:21:16 +0200 Subject: [PATCH] fixed the statistics tag for BIND v9.9+ --- lib/bind.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bind.pm b/lib/bind.pm index 39df293..d18499b 100644 --- a/lib/bind.pm +++ b/lib/bind.pm @@ -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")) {