Skip to content

Commit

Permalink
Merge pull request vmware-tanzu#5534 from qiuming-best/backup-progress
Browse files Browse the repository at this point in the history
fix restic backup progress error
  • Loading branch information
blackpiglet authored Nov 2, 2022
2 parents 5db3da5 + 32637da commit 345abb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/5534-qiuming-best
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix restic backup progress error
4 changes: 2 additions & 2 deletions pkg/restic/exec_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}
}
Expand Down

0 comments on commit 345abb3

Please sign in to comment.