From 8d77482651cd78a453a5398de087472d21390aab Mon Sep 17 00:00:00 2001 From: bert hubert Date: Sat, 5 Dec 2015 22:25:49 +0100 Subject: [PATCH] also show dynblock number of blocks in showDynBlocks() --- pdns/dnsdist-lua2.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/dnsdist-lua2.cc b/pdns/dnsdist-lua2.cc index 389b41ad18..87db0854d8 100644 --- a/pdns/dnsdist-lua2.cc +++ b/pdns/dnsdist-lua2.cc @@ -125,11 +125,11 @@ void moreLua() auto slow = g_dynblockNMG.getCopy(); struct timespec now; clock_gettime(CLOCK_MONOTONIC, &now); - boost::format fmt("%-24s %8d %s\n"); - g_outputBuffer = (fmt % "Netmask" % "Seconds" % "Reason").str(); + boost::format fmt("%-24s %8d %8d %s\n"); + g_outputBuffer = (fmt % "Netmask" % "Seconds" % "Blocks" % "Reason").str(); for(const auto& e: slow) { if(now < e->second.until) - g_outputBuffer+= (fmt % e->first.toString() % (e->second.until.tv_sec - now.tv_sec) % e->second.reason).str(); + g_outputBuffer+= (fmt % e->first.toString() % (e->second.until.tv_sec - now.tv_sec) % e->second.blocks % e->second.reason).str(); } }); -- 2.47.2