From a7d9a0f3fa762b425176a4e9d833cbf61e5940fd Mon Sep 17 00:00:00 2001 From: Martin Purcell Date: Thu, 22 Jul 2021 18:55:03 +0100 Subject: [PATCH] fix: localLevel could sometimes be zero --- internal/events/types/hype_train/hype_train_event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/events/types/hype_train/hype_train_event.go b/internal/events/types/hype_train/hype_train_event.go index 1f6b6a44..1462ba73 100644 --- a/internal/events/types/hype_train/hype_train_event.go +++ b/internal/events/types/hype_train/hype_train_event.go @@ -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)