Skip to content

Check zero for avgTimePerQuery#5904

Merged
sougou merged 1 commit intovitessio:masterfrom
mingjianliu:upstream3
Apr 23, 2020
Merged

Check zero for avgTimePerQuery#5904
sougou merged 1 commit intovitessio:masterfrom
mingjianliu:upstream3

Conversation

@mingjianliu
Copy link
Copy Markdown

Created a simple fix as @dweitzman suggested from #5895

Signed-off-by: Mingjian Liu mingjianliu@pinterest.com

@mingjianliu mingjianliu requested a review from sougou as a code owner March 8, 2020 05:12
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You still need to convert all these integral denominators to floats to prevent divide-by-zero panic()s, as per the comment in the closed PR

Creating new PRs for each round of code review makes it trickier for people to keep track of the conversation and previous comments. In case you weren't aware, force-pushing to your existing branch on github will update an existing PR.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks, am kind of new to use Github system. Messed up a bit so created a newer branch. Let me update the code according to comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Cast the dominators to float64

Signed-off-by: Mingjian Liu <mingjianliu@pinterest.com>
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.

3 participants