dlg99 opened a new pull request, #4152:
URL: https://github.com/apache/bookkeeper/pull/4152

   
   ### Motivation
   
   FastTimer returns zero rate if reate call happens immediately after the 
first timer update. E.g. this test would fail:
   
   ```java
           FastTimer t = new FastTimer();
           t.update(10, TimeUnit.NANOSECONDS);
           assertTrue("should calculate mean before advancing time", 
t.getMeanRate() > 0);
   ```
   
   ### Changes
   
   Fixed + added a test
   
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to