Fix sampler for low Burst values (#19)
This commit is contained in:
parent
c8e50a6043
commit
1251b38a89
|
@ -68,7 +68,7 @@ type BurstSampler struct {
|
|||
|
||||
// Sample implements the Sampler interface.
|
||||
func (s *BurstSampler) Sample(lvl Level) bool {
|
||||
if s.Burst > 9 && s.Period > 0 {
|
||||
if s.Burst > 0 && s.Period > 0 {
|
||||
if s.inc() <= s.Burst {
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue