1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00

Don't try to print a completion percentage for zero-size files.

PR:		27780
Submitted by:	Craig Leres <leres@ee.lbl.gov>
This commit is contained in:
Dag-Erling Smørgrav 2001-06-01 10:24:58 +00:00
parent 0b381bf1fd
commit 1a4a063934
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77576

View File

@ -127,7 +127,7 @@ stat_display(struct xferstat *xs, int force)
xs->last = now;
fprintf(stderr, "\rReceiving %s", xs->name);
if (xs->size == -1)
if (xs->size <= 0)
fprintf(stderr, ": %lld bytes", xs->rcvd);
else
fprintf(stderr, " (%lld bytes): %d%%", xs->size,