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

fix restic backup progress error
pull/5520/head
Xun Jiang/Bruce Jiang 2022-11-02 17:15:30 +08:00 committed by GitHub
commit 345abb3142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,
})
}
}