fix restic backup progress error

Signed-off-by: Ming <mqiu@vmware.com>
pull/5534/head
Ming 2022-11-02 06:37:41 +00:00
parent e6ba774841
commit 32637da16b
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
fix restic backup progress error

View File

@ -105,8 +105,8 @@ func RunBackup(backupCmd *Command, log logrus.FieldLogger, updater uploader.Prog
// caller with the progress
if stat.BytesDone != 0 {
updater.UpdateProgress(&uploader.UploaderProgress{
TotalBytes: stat.TotalBytesProcessed,
BytesDone: stat.TotalBytesProcessed,
TotalBytes: stat.TotalBytes,
BytesDone: stat.BytesDone,
})
}
}