Skip to content

Commit

Permalink
Fix standalone limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
estringana committed Nov 18, 2024
1 parent 51099a2 commit 3aa34b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standalone_limiter.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ bool ddtrace_standalone_limiter_allow() {
uint64_t timeval = zend_hrtime();
uint64_t old_time = atomic_load(&dd_limiter->window.last_hit);

if (old_time - timeval < 60000000000) {
if (timeval - old_time < 60000000000) {
return false;
}

Expand Down

0 comments on commit 3aa34b0

Please sign in to comment.