chore: add convert backup size from bytes to Mib
This commit is contained in:
@@ -37,7 +37,7 @@ type MailConfig struct {
|
||||
}
|
||||
type NotificationData struct {
|
||||
File string
|
||||
BackupSize int64
|
||||
BackupSize uint64
|
||||
Database string
|
||||
StartTime string
|
||||
EndTime string
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user