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

Fixes histogram plot disappears when time range is too small (issue #733) #979

Merged
merged 1 commit into from
Feb 24, 2014

Conversation

kuwerty
Copy link

@kuwerty kuwerty commented Feb 24, 2014

This fixes rounding behaviour in interval_to_ms. The interval_to_ms
function will round any fractional component of an interval to 0 because
it tries to parse it as an integer.

I've fixed it by trying by parsing as a float but then trying to preserve
the existing behaviour of returning integer results in the callers.

closes elasticsearch/kibana/#733

…lastic#733)

This fixes rounding behaviour in interval_to_ms. The interval_to_ms
function will round any fractional component of an interval to 0 because
it tries to parse it as an integer.

I've fixed it by trying by parsing as a float but then trying to preserve
the existing behaviour of returning integer results in the callers.

closes elasticsearch/kibana/elastic#733
@rashidkpc
Copy link
Contributor

This looks great, I'd love to get it merged. Can you make sure you've signed the CLA here
http://www.elasticsearch.org/contributor-agreement/

https://github.com/elasticsearch/kibana/blob/master/CONTRIBUTING.md

@kuwerty
Copy link
Author

kuwerty commented Feb 24, 2014

Done!

Thanks.

On Tuesday, February 25, 2014 at 1:39 AM, Rashid Khan wrote:

This looks great, I'd love to get it merged. Can you make sure you've signed the CLA here
http://www.elasticsearch.org/contributor-agreement/
https://github.com/elasticsearch/kibana/blob/master/CONTRIBUTING.md


Reply to this email directly or view it on GitHub (#979 (comment)).

@rashidkpc rashidkpc merged commit b73b11f into elastic:master Feb 24, 2014
@kuwerty kuwerty deleted the interval_to_ms_fix branch February 25, 2014 05:13
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