HBASE-17731 Fractional latency reporting in MultiThreadedAction

This commit is contained in:
Andrew Purtell 2017-03-09 16:54:23 -08:00
parent 1105e1260d
commit 0bc9ad0628
1 changed files with 5 additions and 3 deletions

View File

@ -219,11 +219,13 @@ public abstract class MultiThreadedAction {
+ ", time="
+ formatTime(time)
+ ((numKeys > 0 && time > 0) ? (" Overall: [" + "keys/s= "
+ numKeys * 1000 / time + ", latency=" + totalOpTime
/ numKeys + " ms]") : "")
+ numKeys * 1000 / time + ", latency="
+ String.format("%.2f", (double)totalOpTime / (double)numKeys)
+ " ms]") : "")
+ ((numKeysDelta > 0) ? (" Current: [" + "keys/s="
+ numKeysDelta * 1000 / REPORTING_INTERVAL_MS + ", latency="
+ totalOpTimeDelta / numKeysDelta + " ms]") : "")
+ String.format("%.2f", (double)totalOpTimeDelta / (double)numKeysDelta)
+ " ms]") : "")
+ progressInfo());
if (streamingCounters) {