Fix ticker rate issue

This commit is contained in:
sqshq 2019-12-21 21:59:05 -05:00
parent 43d50652cc
commit 6a0a77c1eb
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ type Sampler struct {
func NewSampler(consumer *Consumer, items []*Item, triggers []*Trigger, options config.Options, fileVariables map[string]string, rateMs int) *Sampler {
ticker := time.NewTicker(time.Duration(uint32(rateMs) * uint32(time.Millisecond)))
ticker := time.NewTicker(time.Duration(rateMs) * time.Millisecond)
sampler := &Sampler{
consumer,