mirror of https://github.com/1Panel-dev/1Panel
pref: 完善告警通知任务 (#6263)
parent
a1d394fbc2
commit
a5e7f78a1f
|
@ -338,3 +338,7 @@ func FormatBytes(bytes uint64) string {
|
|||
return fmt.Sprintf("%.2fGB", float64(bytes)/float64(gb))
|
||||
}
|
||||
}
|
||||
|
||||
func FormatPercent(percent float64) string {
|
||||
return fmt.Sprintf("%.2f%%", percent)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue