diff --git a/src/Liuggio/StatsdClient/Service/StatsdService.php b/src/Liuggio/StatsdClient/Service/StatsdService.php index 061e351..8e7fa09 100644 --- a/src/Liuggio/StatsdClient/Service/StatsdService.php +++ b/src/Liuggio/StatsdClient/Service/StatsdService.php @@ -55,7 +55,7 @@ public function __construct( /** * Actually defines the sampling rate used by the service. - * If set to 0.1, the service will automatically discard 10% + * If set to 0.1, the service will automatically discard 90% * of the incoming metrics. It will also automatically flag these * as sampled data to statsd. * @@ -68,7 +68,7 @@ public function setSamplingRate($samplingRate) } $this->samplingRate = $samplingRate; $this->samplingFunction = function($min, $max){ - return rand($min, $max); + return rand($min, $max - 1); }; }