From dbfb230b114b3329de00c888136df2fa2f5b301d Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Thu, 16 Jan 2014 16:11:21 -0600 Subject: [PATCH] Cleaner output in TestPerformance when checksum calculation is disabled --- tool/test/org/antlr/v4/test/TestPerformance.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/test/org/antlr/v4/test/TestPerformance.java b/tool/test/org/antlr/v4/test/TestPerformance.java index 512122127..2aa6420a4 100644 --- a/tool/test/org/antlr/v4/test/TestPerformance.java +++ b/tool/test/org/antlr/v4/test/TestPerformance.java @@ -877,12 +877,12 @@ public class TestPerformance extends BaseTest { executorService.shutdown(); executorService.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS); - System.out.format("%d. Total parse time for %d files (%d KB, %d tokens, checksum 0x%8X): %.0fms%n", + System.out.format("%d. Total parse time for %d files (%d KB, %d tokens%s): %.0fms%n", currentPass + 1, inputCount, inputSize / 1024, tokenCount.get(currentPass), - COMPUTE_CHECKSUM ? checksum.getValue() : 0, + COMPUTE_CHECKSUM ? String.format(", checksum 0x%8X", checksum.getValue()) : "", (double)(System.nanoTime() - startTime) / 1000000.0); if (sharedLexers.length > 0) {