From 0fa09c1c74aea19d0d29dc51df88b151eb0fd455 Mon Sep 17 00:00:00 2001 From: dr|z3d Date: Wed, 11 Aug 2021 21:46:59 +0000 Subject: [PATCH] Better alignment for --- latency; boxify session tag count (cherry picked from commit 329d600c64c86f5f4650078ea8f24ebeface77bd) --- daemon/HTTPServer.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index c9f477e4..1b1e503a 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -675,7 +675,7 @@ namespace http { s << it->GetMeanLatency() << tr(/* tr: Milliseconds */ "ms") << ""; } } else { // placeholder for alignment - s << " ---"; + s << " --- "; } ShowTunnelDetails(s, it->GetState (), false, it->GetNumReceivedBytes ()); s << "\r\n"; @@ -694,7 +694,7 @@ namespace http { s << it->GetMeanLatency() << tr(/* tr: Milliseconds */ "ms") << ""; } } else { // placeholder for alignment - s << " ---"; + s << " --- "; } ShowTunnelDetails(s, it->GetState (), false, it->GetNumSentBytes ()); s << "\r\n"; @@ -703,7 +703,9 @@ namespace http { s << "\r\n\r\n\r\n\r\n"; if (dest->GetNumIncomingTags () > 0) { - s << "" << tr("Incoming Session Tags") << " [" << dest->GetNumIncomingTags () << "]\r\n"; + s << "" << tr("Incoming Session Tags") + << " [" + << dest->GetNumIncomingTags () << "]\r\n"; } else { s << "" << tr("No Incoming Session Tags") << "\r\n"; } @@ -921,7 +923,7 @@ namespace http { s << it->GetMeanLatency() << tr(/* tr: Milliseconds */ "ms") << ""; } } else { // placeholder for alignment - s << " ---"; + s << " --- "; } ShowTunnelDetails(s, it->GetState (), (it->GetTunnelPool () == ExplPool), it->GetNumReceivedBytes ()); s << "\r\n"; @@ -934,7 +936,7 @@ namespace http { if(it->LatencyIsKnown()) s << " " << it->GetMeanLatency() << tr("ms") << ""; else // placeholder for alignment - s << " ---"; + s << " --- "; ShowTunnelDetails(s, it->GetState (), (it->GetTunnelPool () == ExplPool), it->GetNumSentBytes ()); s << "\r\n\r\n"; }