Browse Source

#2225

update
tags/v1.22.9.2^2
chenyifan01 3 years ago
parent
commit
93ae27de09
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/templates/helper.go

+ 1
- 1
modules/templates/helper.go View File

@@ -788,7 +788,7 @@ func GetRefName(ref string) string {
return reg.ReplaceAllString(ref, "")
}

func MB2GB(size int64) string {
func MB2GB(size int) string {
s := strconv.FormatFloat(float64(size)/float64(1024), 'f', 2, 64)
for strings.HasSuffix(s, "0") {
s = strings.TrimSuffix(s, "0")


Loading…
Cancel
Save