diff --git a/changelogs/unreleased/5534-qiuming-best b/changelogs/unreleased/5534-qiuming-best new file mode 100644 index 0000000000..09faeac0c2 --- /dev/null +++ b/changelogs/unreleased/5534-qiuming-best @@ -0,0 +1 @@ +fix restic backup progress error diff --git a/pkg/restic/exec_commands.go b/pkg/restic/exec_commands.go index 22c1a96659..4ff9e1a325 100644 --- a/pkg/restic/exec_commands.go +++ b/pkg/restic/exec_commands.go @@ -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, }) } }