From aa46f6dc8647de53a025c2c1791d1b68a0092740 Mon Sep 17 00:00:00 2001 From: Gorniaky Date: Tue, 7 Jul 2026 17:10:23 -0300 Subject: [PATCH] fix(progress): adjust formatting in progress message output --- lib/utils/progress.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/utils/progress.dart b/lib/utils/progress.dart index 2ae2542..c2a3f2f 100644 --- a/lib/utils/progress.dart +++ b/lib/utils/progress.dart @@ -25,13 +25,11 @@ String formatProgressMessage({ final StringBuffer buffer = .new(prefixText); if (speed case final speed?) { - buffer.writeAll([" ", ?direction, Bytes.bits(speed * 8), "/s"]); + buffer.writeAll([" ", ?direction, Bytes.bits(speed * 8), "/s "]); } - buffer.write(" "); - if (total.isNegativeOrZero) { - buffer.write(Bytes(processed).toString(" ")); + buffer.write(Bytes(processed)); } else { buffer.write(percentFormatter.format(processed / total)); }