Skip to content

Commit

Permalink
fix: localLevel could sometimes be zero
Browse files Browse the repository at this point in the history
  • Loading branch information
greebowarrior committed Jul 22, 2021
1 parent ad5943e commit a7d9a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/events/types/hype_train/hype_train_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
lastType := util.RandomType()

//Local variables which will be used for the trigger params below
localLevel := util.RandomInt(5)
localLevel := util.RandomInt(4) + 1
localTotal := util.RandomInt(10 * 100)
localGoal := util.RandomInt(10*100*100) + localTotal
localProgress := (localTotal / localGoal)
Expand Down

0 comments on commit a7d9a0f

Please sign in to comment.