Browse Source

Merge pull request 'fix issue #492' (#576) from fix-472 into V20211101

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/576
Reviewed-by: lewis <747342561@qq.com>
pull/578/head
lewis 3 years ago
parent
commit
be090b7b11
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.
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


Loading…
Cancel
Save