From cfbbae860c414fca65a22c37000a69dcb5b9a1a4 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sat, 12 Nov 2022 17:45:08 +0900 Subject: little trick to make progress bar stable --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index b8b2247..5adb970 100644 --- a/src/main.c +++ b/src/main.c @@ -494,8 +494,8 @@ static void print_progress_bar(double percent, char *suffix) static void print_progress(struct timeval *start, struct timeval *end, size_t total, size_t last, size_t done) { - char *bps_units[] = { "B/s", "KB/s", "MB/s", "GB/s" }; - char *byte_units[] = { "B", "KB", "MB", "GB", "TB", "PB" }; + char *bps_units[] = { "B/s ", "KB/s", "MB/s", "GB/s" }; + char *byte_units[] = { "B ", "KB", "MB", "GB", "TB", "PB" }; char suffix[128]; int bps_u, byte_tu, byte_du; size_t total_round, done_round; -- cgit v1.2.3