From 34a93240507de34573e8f40700c4f85e428ca074 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Wed, 6 Nov 2013 12:42:49 +0100 Subject: [PATCH] fixes #29 --- lib/bind.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bind.pm b/lib/bind.pm index be77254..f83c05d 100644 --- a/lib/bind.pm +++ b/lib/bind.pm @@ -485,7 +485,7 @@ sub bind_update { if($major eq "3") { $value = $data->{taskmgr}; } - $rrdata .= ":" . $value->{'thread-model'}->{'worker-threads'}; + $rrdata .= ":" . ($value->{'thread-model'}->{'worker-threads'} || 0); $rrdata .= ":" . $value->{'thread-model'}->{'default-quantum'}; $rrdata .= ":" . $value->{'thread-model'}->{'tasks-running'}; $rrdata .= ":0:0:0";