Skip to content

Commit

Permalink
Fix wrong status for backup (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kourin1996 authored Jun 23, 2022
1 parent 009a813 commit a602903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archive/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func processExportStream(
expectedTo = event.Latest
}

expectedTotal := event.Latest - targetFrom
expectedTotal := targetTo - targetFrom
progress := 100 * (float64(event.To) - float64(targetFrom)) / float64(expectedTotal)

logger.Info(
Expand Down

0 comments on commit a602903

Please sign in to comment.