From dc3518ea87f6e9d72784eaf59d654daf79fb331d Mon Sep 17 00:00:00 2001 From: Anon2026 Date: Thu, 29 Jan 2026 22:20:21 +0300 Subject: [PATCH] Do not translate KiB, MiB, GiB --- daemon/HTTPServer.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index 7ecc3380..1d9ee3a0 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -131,11 +131,14 @@ namespace http { s << std::fixed << std::setprecision(2); auto numKBytes = (double) bytes / 1024; if (numKBytes < 1024) - s << tr(/* tr: Kibibyte */ "%.2f KiB", numKBytes); + /* Kibibyte */ + s << numKBytes << " KiB"; else if (numKBytes < 1024 * 1024) - s << tr(/* tr: Mebibyte */ "%.2f MiB", numKBytes / 1024); + /* Mebibyte */ + s << (numKBytes / 1024) << " MiB" ; else - s << tr(/* tr: Gibibyte */ "%.2f GiB", numKBytes / 1024 / 1024); + /* Gibibyte */ + s << (numKBytes / 1024 / 1024) << " GiB"; } static void ShowTunnelDetails (std::stringstream& s, enum i2p::tunnel::TunnelState eState, bool explr, int bytes)