Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid unnecessary call when sampling=1 #313

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

jotak
Copy link
Member

@jotak jotak commented Apr 12, 2024

Call to "bpf_get_prandom_u32() % sampling" not necessary when sampling is 1

@msherif1234
Copy link
Contributor

/lgtm

@codecov-commenter
Copy link

codecov-commenter commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 34.50%. Comparing base (cb2cf53) to head (151d39a).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #313      +/-   ##
==========================================
+ Coverage   33.63%   34.50%   +0.86%     
==========================================
  Files          47       48       +1     
  Lines        3865     3371     -494     
==========================================
- Hits         1300     1163     -137     
+ Misses       2477     2111     -366     
- Partials       88       97       +9     
Flag Coverage Δ
unittests 34.50% <ø> (+0.86%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@msherif1234
Copy link
Contributor

/approve

Copy link

openshift-ci bot commented Apr 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: msherif1234

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Call to "bpf_get_prandom_u32() % sampling" not necessary when sampling
is 1
@msherif1234
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Apr 12, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit c793936 into netobserv:main Apr 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants