Merge pull request #5534 from qiuming-best/backup-progress

fix restic backup progress error
This commit is contained in:
Xun Jiang/Bruce Jiang
2022-11-02 17:15:30 +08:00
committed by GitHub
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,
})
}
}