runzhiwang opened a new pull request #166:
URL: https://github.com/apache/incubator-ratis/pull/166


   ## What changes were proposed in this pull request?
   `randomized.getDuration()` got from the following code, i.e. `rounded`. 
`multiplier` is a double value less than 1.5 in the test, such as 1.4999999, 
`duration` is 1000, then `product` will be 1499.9999, so `rounded` will be 
1500, which is not less than `d*1.5`, i.e. 1500.
   
   
![image](https://user-images.githubusercontent.com/51938049/89360621-99947480-d6fb-11ea-8bcd-8f072f66780d.png)
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-1021
   
   ## How was this patch tested?
   
   No need to add ut.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to