chore: add convert backup size from bytes to Mib

This commit is contained in:
2024-12-10 09:58:39 +01:00
parent 6ec480acda
commit c89411cfa6
9 changed files with 13 additions and 9 deletions

View File

@@ -254,3 +254,7 @@ func CronNextTime(cronExpr string) time.Time {
next := schedule.Next(now)
return next
}
func BytesToMb(b uint64) uint64 {
return b / 1024 / 1024
}