mirror of
https://github.com/xboot/xfel.git
synced 2024-11-26 19:23:28 +08:00
[progress]update progress.c
This commit is contained in:
parent
b2e9bbd069
commit
a0e0582e33
@ -60,9 +60,9 @@ void progress_update(struct progress_t * p, uint64_t bytes)
|
||||
for(i = pos; i < 48; i++)
|
||||
putchar(' ');
|
||||
if(p->done < p->total)
|
||||
printf("] %s/s, ETA %s \r", ssize(buf1, speed), format_eta(eta));
|
||||
printf("] %s/s, ETA %s \r", ssize(buf1, speed), format_eta(eta));
|
||||
else
|
||||
printf("] %s, %s/s \r", ssize(buf1, p->done), ssize(buf2, speed));
|
||||
printf("] %s, %s/s \r", ssize(buf1, p->done), ssize(buf2, speed));
|
||||
fflush(stdout);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user