Skip to content

Refactor Node interface: change return type of QPS get method to double - #564

Merged
sczyh30 merged 1 commit into
masterfrom
enhancement/qps_double
Mar 13, 2019
Merged

Refactor Node interface: change return type of QPS get method to double#564
sczyh30 merged 1 commit into
masterfrom
enhancement/qps_double

Conversation

@sczyh30

@sczyh30 sczyh30 commented Mar 11, 2019

Copy link
Copy Markdown
Member

Describe what this PR does / why we need it

Change return type of xxxQps method from long to double to make it more concise.

Note: this is an incompatible breaking change.

Does this pull request fix one issue?

Fixes #242

Describe how you did it

  • Change return type of xxxQps method from long to double
  • Update test cases (use assertEquals(e, a, delta) instead)
  • Add totalPass method in Node interface
  • Javadoc refinement

Describe how to verify it

Run the test cases and demo.

Special notes for reviews

This PR contains breaking changes, please consider it carefully.

- Update test cases
- Also add `totalPass` method in Node interface

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
@sczyh30 sczyh30 added the to-review To review label Mar 11, 2019
@sczyh30
sczyh30 requested a review from CarpenterLee March 11, 2019 12:42

@CarpenterLee CarpenterLee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

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.

Use Long value as Node statistic type is not accurate enough

2 participants