From 04765288d75f3ec44ce8df8497913d4a67ef43e6 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 29 Mar 2020 10:27:56 -0700 Subject: [PATCH] Change default file size on media info tables to SI units --- data/interfaces/default/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/interfaces/default/js/script.js b/data/interfaces/default/js/script.js index 4954ebd6..089488c9 100644 --- a/data/interfaces/default/js/script.js +++ b/data/interfaces/default/js/script.js @@ -461,7 +461,7 @@ $('*').on('click', '.refresh_pms_image', function (e) { }); // Taken from http://stackoverflow.com/questions/10420352/converting-file-size-in-bytes-to-human-readable#answer-14919494 -function humanFileSize(bytes, si) { +function humanFileSize(bytes, si = true) { var thresh = si ? 1000 : 1024; if (Math.abs(bytes) < thresh) { return bytes + ' B';