From 58d6df4fffa0e41d1a131234ac5d357ffe59777d Mon Sep 17 00:00:00 2001 From: Alexey Loubyansky Date: Mon, 29 Oct 2018 16:51:13 +0100 Subject: [PATCH] [GAL-203] Shorten progress tracking messages by excluding duplicate info --- .../org/jboss/galleon/cli/tracking/JBossModulesTracker.java | 2 +- .../java/org/jboss/galleon/cli/tracking/PackagesTracker.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/main/java/org/jboss/galleon/cli/tracking/JBossModulesTracker.java b/cli/src/main/java/org/jboss/galleon/cli/tracking/JBossModulesTracker.java index 30c384e6f..2d295349c 100644 --- a/cli/src/main/java/org/jboss/galleon/cli/tracking/JBossModulesTracker.java +++ b/cli/src/main/java/org/jboss/galleon/cli/tracking/JBossModulesTracker.java @@ -32,7 +32,7 @@ public JBossModulesTracker() { @Override public String processingContent(ProgressTracker tracker) { - return String.format("%s of %s JBoss modules installed (%s%%)", + return String.format("%s of %s (%s%%)", tracker.getProcessedVolume(), tracker.getTotalVolume(), ((double) Math.round(tracker.getProgress() * 10)) / 10); } diff --git a/cli/src/main/java/org/jboss/galleon/cli/tracking/PackagesTracker.java b/cli/src/main/java/org/jboss/galleon/cli/tracking/PackagesTracker.java index 9c8b49060..5cf3c69eb 100644 --- a/cli/src/main/java/org/jboss/galleon/cli/tracking/PackagesTracker.java +++ b/cli/src/main/java/org/jboss/galleon/cli/tracking/PackagesTracker.java @@ -31,7 +31,7 @@ public PackagesTracker() { @Override public String processingContent(ProgressTracker tracker) { - return String.format("%s of %s packages installed (%s%%)", + return String.format("%s of %s (%s%%)", tracker.getProcessedVolume(), tracker.getTotalVolume(), ((double) Math.round(tracker.getProgress() * 10)) / 10); }