Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Liuggio/StatsdClient/Service/StatsdService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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);
};
}

Expand Down