Skip to content

Commit dd36674

Browse files
authored
fix(tracemgmt): remove unnecessary errno check in rate limit reset condition (#583)
1 parent 418fd9c commit dd36674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support/ebpf/tracemgmt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static inline EBPF_INLINE bool report_pid(void *ctx, u64 pid_tgid, int ratelimit
173173
increment_metric(metricID_PIDEventsErr);
174174
return false;
175175
}
176-
if (ratelimit_action == RATELIMIT_ACTION_RESET || errNo != 0) {
176+
if (ratelimit_action == RATELIMIT_ACTION_RESET) {
177177
bpf_map_delete_elem(&reported_pids, &pid);
178178
}
179179

0 commit comments

Comments
 (0)