From c3ade2fdba28cadd4372b211a9002e1cd7bab324 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 20 Oct 2021 15:32:42 +0800 Subject: [PATCH] fix issue #492 --- modules/base/tool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/base/tool.go b/modules/base/tool.go index 8145522e2..cf2972990 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -224,7 +224,7 @@ func SizedAvatarLinkWithDomain(email string, size int) string { // FileSize calculates the file size and generate user-friendly string. func FileSize(s int64) string { - return humanize.IBytes(uint64(s)) + return humanize.Bytes(uint64(s)) } // PrettyNumber produces a string form of the given number in base 10 with