From 6d7c4063b0022e9b463cfc3e3754cf76e79c0ce9 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 8 Aug 2013 15:09:38 +0200 Subject: [PATCH] fix offbyone --- pdns/responsestats.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/responsestats.cc b/pdns/responsestats.cc index a46926e2ed..90d05beb0e 100644 --- a/pdns/responsestats.cc +++ b/pdns/responsestats.cc @@ -4,7 +4,7 @@ ResponseStats::ResponseStats() { - d_qtypecounters.resize(std::numeric_limits::max()); + d_qtypecounters.resize(std::numeric_limits::max()+1); d_sizecounters.push_back(make_pair(20,0)); d_sizecounters.push_back(make_pair(40,0)); d_sizecounters.push_back(make_pair(60,0)); -- 2.47.3