Skip to content

Commit

Permalink
fix: Correct inaccurate expression (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauci committed Apr 8, 2020
1 parent c81026a commit a91e573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Zipkin/Samplers/PercentageSampler.php
Expand Up @@ -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;
}
}

0 comments on commit a91e573

Please sign in to comment.