Skip to content
Snippets Groups Projects
Commit bd4ca603 authored by Sean Busbey's avatar Sean Busbey
Browse files

Merge pull request #238 from busbey/issue-237

[client] clean up status message creation.
parents 8b7decb0 d1a9b123
No related branches found
No related tags found
No related merge requests found
...@@ -102,25 +102,20 @@ class StatusThread extends Thread ...@@ -102,25 +102,20 @@ class StatusThread extends Thread
DecimalFormat d = new DecimalFormat("#.##"); DecimalFormat d = new DecimalFormat("#.##");
String label = _label + format.format(new Date()); String label = _label + format.format(new Date());
if (totalops==0)
{
System.err.println(label+ " " +(interval/1000)+" sec: "+totalops+" operations; "+Measurements.getMeasurements().getSummary());
}
else
{
System.err.println(label+" " + (interval/1000)+" sec: "+totalops+" operations; "+d.format(curthroughput)+" current ops/sec; "+Measurements.getMeasurements().getSummary());
}
if (_standardstatus) StringBuilder msg = new StringBuilder(label).append(" ").append(interval/1000).append(" sec: ");
{ msg.append(totalops).append(" operations; ");
if (totalops==0)
{ if (totalops != 0) {
System.out.println(label+" "+(interval/1000)+" sec: "+totalops+" operations; "+Measurements.getMeasurements().getSummary()); msg.append(d.format(curthroughput)).append(" current ops/sec; ");
} }
else
{ msg.append(Measurements.getMeasurements().getSummary());
System.out.println(label+" "+(interval/1000)+" sec: "+totalops+" operations; "+d.format(curthroughput)+" current ops/sec; "+Measurements.getMeasurements().getSummary()); }
System.err.println(msg);
if (_standardstatus) {
System.out.println(msg);
} }
try try
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment