summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2022-11-12 17:45:08 +0900
committerRyo Nakamura <upa@haeena.net>2022-11-12 17:45:08 +0900
commitcfbbae860c414fca65a22c37000a69dcb5b9a1a4 (patch)
tree9fb81792c8c9672525c05651c2c2ce7d3593fe9d /src
parent756e0759f9539b9dab5556c7cd7873396b429834 (diff)
little trick to make progress bar stable
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
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;