mirror of
https://github.com/upa/mscp.git
synced 2026-03-17 05:47:35 +08:00
little trick to make progress bar stable
This commit is contained in:
@@ -494,8 +494,8 @@ static void print_progress_bar(double percent, char *suffix)
|
|||||||
static void print_progress(struct timeval *start, struct timeval *end,
|
static void print_progress(struct timeval *start, struct timeval *end,
|
||||||
size_t total, size_t last, size_t done)
|
size_t total, size_t last, size_t done)
|
||||||
{
|
{
|
||||||
char *bps_units[] = { "B/s", "KB/s", "MB/s", "GB/s" };
|
char *bps_units[] = { "B/s ", "KB/s", "MB/s", "GB/s" };
|
||||||
char *byte_units[] = { "B", "KB", "MB", "GB", "TB", "PB" };
|
char *byte_units[] = { "B ", "KB", "MB", "GB", "TB", "PB" };
|
||||||
char suffix[128];
|
char suffix[128];
|
||||||
int bps_u, byte_tu, byte_du;
|
int bps_u, byte_tu, byte_du;
|
||||||
size_t total_round, done_round;
|
size_t total_round, done_round;
|
||||||
|
|||||||
Reference in New Issue
Block a user