From 78c616b52d58f2e95857f5f9c7ec8b3e839afff5 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 23 Nov 2021 20:07:55 +0800 Subject: [PATCH] fix sort when size is TB #470 , --- theme/classic.html | 1 + 1 file changed, 1 insertion(+) diff --git a/theme/classic.html b/theme/classic.html index 17b04a9..6e2e242 100644 --- a/theme/classic.html +++ b/theme/classic.html @@ -785,6 +785,7 @@ } function size_reformat(str) { if (str.substr(-1)==' ') str=str.substr(0,str.length-1); + if (str.substr(-2)=='TB') num=str.substr(0,str.length-3)*1024*1024*1024*1024; if (str.substr(-2)=='GB') num=str.substr(0,str.length-3)*1024*1024*1024; if (str.substr(-2)=='MB') num=str.substr(0,str.length-3)*1024*1024; if (str.substr(-2)=='KB') num=str.substr(0,str.length-3)*1024;