diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-11-12 17:45:08 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-11-12 17:45:08 +0900 |
commit | cfbbae860c414fca65a22c37000a69dcb5b9a1a4 (patch) | |
tree | 9fb81792c8c9672525c05651c2c2ce7d3593fe9d /src | |
parent | 756e0759f9539b9dab5556c7cd7873396b429834 (diff) |
little trick to make progress bar stable
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |