|
|
|
@@ -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") |
|
|
|
|