chore: add convert backup size from bytes to Mib
This commit is contained in:
1 parent
6ec480acda
commit
c89411cfa6
9 files changed
+13
-9
No files matched your search
+1
-1
@@ -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