Przeglądaj źródła

The rest of SI units added

Co-authored-by: El RIDO <elrido@gmx.net>
Mikhail Romanov 1 rok temu
rodzic
commit
390f8ddc53
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      js/privatebin.js

+ 1 - 1
js/privatebin.js

@@ -604,7 +604,7 @@ jQuery.PrivateBin = (function($) {
             let result = '';
             let result = '';
             const kilobyte = 1000;
             const kilobyte = 1000;
             const decimalPoint = 2;
             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));
             const index = Math.floor(Math.log(bytes) / Math.log(kilobyte));
 
 
             if (bytes > 0) {
             if (bytes > 0) {