File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
implementations/cli/src/main/java/de/bluecolored/bluemap/cli Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 2929import de .bluecolored .bluemap .common .MissingResourcesException ;
3030import de .bluecolored .bluemap .common .addons .Addons ;
3131import de .bluecolored .bluemap .common .api .BlueMapAPIImpl ;
32+ import de .bluecolored .bluemap .common .commands .TextFormat ;
3233import de .bluecolored .bluemap .common .config .BlueMapConfigManager ;
3334import de .bluecolored .bluemap .common .config .ConfigurationException ;
3435import de .bluecolored .bluemap .common .config .CoreConfig ;
@@ -141,11 +142,7 @@ public void run() {
141142 String eta = "" ;
142143 if (etaMs > 0 ) {
143144 Duration duration = Duration .of (etaMs , ChronoUnit .MILLIS );
144- eta = " (ETA: %d:%02d:%02d)" .formatted (
145- duration .toHours (),
146- duration .toMinutesPart (),
147- duration .toSecondsPart ()
148- );
145+ eta = " (ETA: %s)" .formatted (TextFormat .duration (duration ));
149146 }
150147 Logger .global .logInfo (task .getDescription () + ": " + (Math .round (progress * 100000 ) / 1000.0 ) + "%" + eta );
151148 }
You can’t perform that action at this time.
0 commit comments