Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 16530ce

Browse files
committed
fix sample_rate for exclusivity
1 parent 24c0ecd commit 16530ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raven/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def capture(self, event_type, data=None, date=None, time_spent=None,
632632
**kwargs)
633633

634634
# should this event be sampled?
635-
if self._random.random() <= self.sample_rate:
635+
if self._random.random() < self.sample_rate:
636636
self.send(**data)
637637

638638
self._local_state.last_event_id = data['event_id']

0 commit comments

Comments
 (0)