Merge pull request #78 from sqshq/fix_ticker_rate
Fix ticker rate issue
This commit is contained in:
commit
2681053f29
|
@ -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 {
|
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{
|
sampler := &Sampler{
|
||||||
consumer,
|
consumer,
|
||||||
|
|
Loading…
Reference in New Issue