From 2ce94dc33d4f3fcc37072afd26e0584a1f77fa1d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 14 Oct 2019 16:02:44 +0200 Subject: [PATCH] dnsdist: Fix formatting in showTCPStats() --- pdns/dnsdist-lua-inspection.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pdns/dnsdist-lua-inspection.cc b/pdns/dnsdist-lua-inspection.cc index e1597563d..f1c453a5b 100644 --- a/pdns/dnsdist-lua-inspection.cc +++ b/pdns/dnsdist-lua-inspection.cc @@ -557,16 +557,16 @@ void setupLuaInspection() g_lua.writeFunction("showTCPStats", [] { setLuaNoSideEffect(); ostringstream ret; - boost::format fmt("%-10d %-10d %-10d %-10d\n"); - ret << (fmt % "Clients" % "MaxClients" % "Queued" % "MaxQueued") << endl; + boost::format fmt("%-12d %-12d %-12d %-12d"); + ret << (fmt % "Workers" % "Max Workers" % "Queued" % "Max Queued") << endl; ret << (fmt % g_tcpclientthreads->getThreadsCount() % g_maxTCPClientThreads % g_tcpclientthreads->getQueuedCount() % g_maxTCPQueuedConnections) << endl; - ret <