From 32637da16bd51b202cbb274fc972d18efea4fc27 Mon Sep 17 00:00:00 2001 From: Ming Date: Wed, 2 Nov 2022 06:37:41 +0000 Subject: [PATCH] fix restic backup progress error Signed-off-by: Ming --- changelogs/unreleased/5534-qiuming-best | 1 + pkg/restic/exec_commands.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelogs/unreleased/5534-qiuming-best 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, }) } }