Browse Source

fix issue #492

pull/576/head
zhoupzh 3 years ago
parent
commit
c3ade2fdba
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/base/tool.go

+ 1
- 1
modules/base/tool.go View File

@@ -224,7 +224,7 @@ func SizedAvatarLinkWithDomain(email string, size int) string {


// FileSize calculates the file size and generate user-friendly string. // FileSize calculates the file size and generate user-friendly string.
func FileSize(s int64) 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 // PrettyNumber produces a string form of the given number in base 10 with


Loading…
Cancel
Save