From ac287a896c289bebb9d0c69c711de53aeac449dc Mon Sep 17 00:00:00 2001 From: R4SAS Date: Fri, 20 Jan 2023 23:03:00 +0000 Subject: [PATCH] [websonsole] use a function to format the amount of tunnel traffic Signed-off-by: R4SAS --- daemon/HTTPServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index 02b689a6..0b99c047 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -150,7 +150,8 @@ namespace http { else stateText = tr("unknown"); s << " " << stateText << ((explr) ? " (" + tr("exploratory") + ")" : "") << ", "; - s << " " << tr(/* tr: Kibibyte */ "%.2f KiB", (double) bytes / 1024) << "\r\n"; + ShowTraffic(s, bytes); + s << "\r\n"; } static void SetLogLevel (const std::string& level)