From a91e573665f4eb56467b5ecbbdf697d534c318f0 Mon Sep 17 00:00:00 2001 From: Pavol Kirschbaum Date: Wed, 8 Apr 2020 18:19:22 +0200 Subject: [PATCH] fix: Correct inaccurate expression (#135) --- src/Zipkin/Samplers/PercentageSampler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zipkin/Samplers/PercentageSampler.php b/src/Zipkin/Samplers/PercentageSampler.php index 5a8b5891..98461a94 100644 --- a/src/Zipkin/Samplers/PercentageSampler.php +++ b/src/Zipkin/Samplers/PercentageSampler.php @@ -39,6 +39,6 @@ public static function create(float $rate): self */ public function isSampled(string $traceId): bool { - return (\mt_rand(0, 99) / 100) <= $this->rate; + return (\mt_rand(0, 99) / 100) < $this->rate; } }