From: ShadowNinja Date: Wed, 6 May 2015 19:41:37 +0000 (-0400) Subject: Fix connection speed unit names X-Git-Tag: 0.4.13~300 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d720fd564427b64cfab76e4b6177307bc46fa893;p=oweals%2Fminetest.git Fix connection speed unit names --- diff --git a/src/game.cpp b/src/game.cpp index af68a2571..74ae211bf 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2298,14 +2298,14 @@ bool Game::getServerContent(bool *aborted) if ((USE_CURL == 0) || (!g_settings->getBool("enable_remote_media_server"))) { float cur = client->getCurRate(); - std::string cur_unit = gettext(" KB/s"); + std::string cur_unit = gettext("KiB/s"); if (cur > 900) { cur /= 1024.0; - cur_unit = gettext(" MB/s"); + cur_unit = gettext("MiB/s"); } - message << " ( " << cur << cur_unit << " )"; + message << " (" << cur << ' ' << cur_unit << ")"; } progress = 30 + client->mediaReceiveProgress() * 35 + 0.5;