From 390f8ddc5360a26c00a44012510c16a3810d2650 Mon Sep 17 00:00:00 2001 From: Mikhail Romanov <42250412+Ribas160@users.noreply.github.com> Date: Thu, 24 Jul 2025 00:20:33 +0300 Subject: [PATCH] The rest of SI units added Co-authored-by: El RIDO --- js/privatebin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index 1ee2ef74..f6cacbf7 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -604,7 +604,7 @@ jQuery.PrivateBin = (function($) { let result = ''; const kilobyte = 1000; const decimalPoint = 2; - const sizes = [I18n._('B'), I18n._('kB'), I18n._('MB'), I18n._('GB')]; + const sizes = [I18n._('B'), I18n._('kB'), I18n._('MB'), I18n._('GB'), I18n._('TB'), I18n._('PB'), I18n._('EB'), I18n._('ZB'), I18n._('YB')]; const index = Math.floor(Math.log(bytes) / Math.log(kilobyte)); if (bytes > 0) {