From 0addeafc6b91ca3af3ac58608e50d6ae1c22e975 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Fri, 5 May 2017 03:27:49 +0300 Subject: [PATCH] Add missing unit sizes in misc.js --- src/webui/www/public/scripts/misc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webui/www/public/scripts/misc.js b/src/webui/www/public/scripts/misc.js index 3daaf1bf5..345544182 100644 --- a/src/webui/www/public/scripts/misc.js +++ b/src/webui/www/public/scripts/misc.js @@ -8,13 +8,15 @@ function friendlyUnit(value, isSpeed) { "QBT_TR(MiB)QBT_TR[CONTEXT=misc]", "QBT_TR(GiB)QBT_TR[CONTEXT=misc]", "QBT_TR(TiB)QBT_TR[CONTEXT=misc]", + "QBT_TR(PiB)QBT_TR[CONTEXT=misc]", + "QBT_TR(EiB)QBT_TR[CONTEXT=misc]" ]; if (value < 0) return "QBT_TR(Unknown)QBT_TR[CONTEXT=misc]"; var i = 0; - while (value >= 1024. && i < 4) { + while (value >= 1024. && i < 6) { value /= 1024.; ++i; }