Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
long calls = 0; while (true) { long now = System.currentTimeMillis(); if (s + timeBetweenReporting < now) { double avgSeconds = (now - start) / 1000.0; double seconds = (now - s) / 1000.0; double avgRate = recordCountTotal / avgSeconds; double rate = recordCount / seconds; double latency = (totalTime / 1000000.0) / calls;
Computation of latency may result in divide by zero.