Skip to content

Commit

Permalink
Fix progress being off by one step
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Sep 20, 2024
1 parent 9016cb0 commit 8a8ad5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Refresher.Core/Pipelines/Pipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public float Progress
{
get
{
float completed = this._currentStepIndex / (float)this._steps.Count;
float completed = (this._currentStepIndex - 1) / (float)this._steps.Count;
float currentStep = this._currentStep?.Progress ?? 0f;
float stepWeight = 1f / this._steps.Count;

Expand Down

0 comments on commit 8a8ad5a

Please sign in to comment.