Browse Source

[websonsole] use a function to format the amount of tunnel traffic

Signed-off-by: R4SAS <r4sas@i2pmail.org>
static-build
R4SAS 2 years ago
parent
commit
ac287a896c
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 3
      daemon/HTTPServer.cpp

3
daemon/HTTPServer.cpp

@ -150,7 +150,8 @@ namespace http {
else stateText = tr("unknown"); else stateText = tr("unknown");
s << "<span class=\"tunnel " << state << "\"> " << stateText << ((explr) ? " (" + tr("exploratory") + ")" : "") << "</span>, "; s << "<span class=\"tunnel " << state << "\"> " << stateText << ((explr) ? " (" + tr("exploratory") + ")" : "") << "</span>, ";
s << " " << tr(/* tr: Kibibyte */ "%.2f KiB", (double) bytes / 1024) << "\r\n"; ShowTraffic(s, bytes);
s << "\r\n";
} }
static void SetLogLevel (const std::string& level) static void SetLogLevel (const std::string& level)

Loading…
Cancel
Save