dropwizard/metrics — pull request #623 by volker (2014-08-11 22:05:58+00:00)
Title: Correct comparison of System.nanoTime in SlidingTimeWindowReservoir

The currently used comparison between oldTick and Tick (tick > oldTick) is bound to break because System.nanoTime can easily overflow (more easily if multiplied with COLLISION_BUFFER). Therefore, one should compare tick - oldTick > 0, according to System.nanoTime documentation. This fixes an odd behaviour I have experienced where values wouldn't degrade after "leaving" the window.

Please contact me if you need anything else.

Thanks,
Volker