Do not print the latency histogram if there are no values.
@@ -517,8 +517,10 @@ public class CometDLoadServer {
}
private void print() {
+ if (histogram.getTotalCount() > 0) {
System.err.println(new HistogramSnapshot(histogram.copy(), 20, "Requests - Latency", "\u00B5s", this));
}
+ }
public void doNotTrackCurrentRequest() {
currentEnabled.set(false);
