Change format of progress report in network stress test

Printing on stdout with a different format makes progress bars easier to filter out.
This commit is contained in:
Ivan Vilata-i-Balaguer 2016-05-12 09:01:41 +02:00
parent 0e9bcff2c8
commit 7b0834e3b8

View File

@ -113,9 +113,10 @@ public class NetworkStressTest {
latch.countDown();
int remaining = (int)latch.getCount();
if (remaining > 0)
System.err.print(String.format("\r%s: %s ", this.getClass().getSimpleName(), nChars(c, remaining)));
System.out.print(String.format("\r%s> %s ", this.getClass().getSimpleName(), nChars(c, remaining)));
if (remaining == 1)
System.err.println();
System.out.print('\n');
System.out.flush();
}
@Before