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

Signed-off-by: R4SAS <r4sas@i2pmail.org>
static-build
R4SAS 1 year ago
parent 8baf62eb2c
commit ac287a896c
No known key found for this signature in database
GPG Key ID: 66F6C87B98EBCFE2

@ -150,7 +150,8 @@ namespace http {
else stateText = tr("unknown");
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)

Loading…
Cancel
Save