From: Remi Gacogne Date: Tue, 17 Nov 2015 17:06:23 +0000 (+0100) Subject: Fix the width of format fields for the showServers() output. X-Git-Tag: dnsdist-1.0.0-alpha1~213^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2dd8d58f7df3e981671a0603665abbe1b14b738c;p=pdns Fix the width of format fields for the showServers() output. --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 21ac9931b..b1ddce066 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -311,8 +311,7 @@ vector> setupLua(bool client, const std::string& confi g_lua.writeFunction("showServers", []() { try { ostringstream ret; - - boost::format fmt("%1$-3d %2$-20s %3% %|40t|%4$5s %|36t|%5$7.1f %|41t|%6$7d %|44t|%7$3d %|53t|%8$2d %|55t|%9$10d %|61t|%10$7d %|76t|%11$5.1f %|84t|%12$5.1f %13%" ); + boost::format fmt("%1$-3d %2$-20.20s %|25t|%3% %|55t|%4$5s %|51t|%5$7.1f %|66t|%6$7d %|69t|%7$3d %|78t|%8$2d %|80t|%9$10d %|86t|%10$7d %|91t|%11$5.1f %|109t|%12$5.1f %13%" ); // 1 2 3 4 5 6 7 8 9 10 11 12 ret << (fmt % "#" % "Name" % "Address" % "State" % "Qps" % "Qlim" % "Ord" % "Wt" % "Queries" % "Drops" % "Drate" % "Lat" % "Pools") << endl;