From 2dee15279c9f2b090c5225691bdaa1630aef1aa0 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Wed, 30 Apr 2025 16:21:43 -0400 Subject: [PATCH] fix for min/max equivalence on pacing in private-proxy (#953) --- canary/privateHttpLooper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canary/privateHttpLooper.go b/canary/privateHttpLooper.go index 2bdc3662..052e510d 100644 --- a/canary/privateHttpLooper.go +++ b/canary/privateHttpLooper.go @@ -254,8 +254,8 @@ func (l *PrivateHttpLooper) iterate() { pacingDelta := l.opt.MaxPacing.Milliseconds() - l.opt.MinPacing.Milliseconds() if pacingDelta > 0 { pacingMs = (rand.Int63() % pacingDelta) + l.opt.MinPacing.Milliseconds() - time.Sleep(time.Duration(pacingMs) * time.Millisecond) } + time.Sleep(time.Duration(pacingMs) * time.Millisecond) l.results.Loops++ }