From 7b0834e3b87b08ea541e1910a4a8b43a02f9da79 Mon Sep 17 00:00:00 2001 From: Ivan Vilata-i-Balaguer Date: Thu, 12 May 2016 09:01:41 +0200 Subject: [PATCH] Change format of progress report in network stress test Printing on stdout with a different format makes progress bars easier to filter out. --- .../java/io/bitsquare/p2p/network/NetworkStressTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java b/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java index 723ef56f9d..b6fac59d56 100644 --- a/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java +++ b/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java @@ -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