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

Include rtt no matter if there is an error or not. #79

Merged
merged 1 commit into from
Jun 8, 2012
Merged

Include rtt no matter if there is an error or not. #79

merged 1 commit into from
Jun 8, 2012

Conversation

dispalt
Copy link
Contributor

@dispalt dispalt commented May 24, 2012

No description provided.

}
noit_stats_set_metric(ci->check, &ci->current, "rtt", METRIC_DOUBLE,
ci->timed_out ? NULL : &rtt);

Copy link
Member

Choose a reason for hiding this comment

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

Does this set rtt in the case of a timeout? I agree we should be setting rtt regardless of the response, but not if there is not response.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

does set_metric as NULL not actually set the metric? I figured that's what it did.

Copy link
Member

Choose a reason for hiding this comment

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

setting the metric as null sets the metric and sets it to null. If you don't want the metric to come back at all, you skip the set.

if(!ci->timed_out) noit_stats_set_metric(...)

Copy link
Member

Choose a reason for hiding this comment

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

But as this doesn't appear to change the behaviour on timeouts.. I suppose it is okay as is.

postwait added a commit that referenced this pull request Jun 8, 2012
Include rtt no matter if there is an error or not.
@postwait postwait merged commit 9ddee8b into circonus-labs:master Jun 8, 2012
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