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

Add sample rate to statsd to throttle overexuberant stats #403

Merged
merged 1 commit into from
Oct 24, 2017

Conversation

jerryblakley
Copy link
Contributor

No description provided.

log_print(LOG_DEBUG, SECTION_STATS_DEFAULT, "%s: sample: %.2f, rate: %.2f, send: %d",
funcname, sample, samplerate, (samplerate > sample));
return samplerate > sample;
} else {
Copy link
Contributor

@joemiller joemiller Oct 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a suggestion: the else is unnecessary here. But if the fusedav codebase currently does this in most places then it probably makes sense to stay consistent

from mozilla coding style guide:

Don't put an else right after a return (or a break). Delete the else, it's unnecessary and increases indentation level.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMG. I have scars from all those wars!

@joemiller
Copy link
Contributor

looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants