diff options
author | des <des@FreeBSD.org> | 2001-06-01 10:24:58 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-06-01 10:24:58 +0000 |
commit | e576be9a24c311d9bcc8babdedb7ee086cc6f92c (patch) | |
tree | c112fe5f18d271cdb77717bf7c9d482b6acbdd73 /usr.bin/fetch | |
parent | e7a85be33fc3bc164d55aaa44eda7f972ff86850 (diff) | |
download | FreeBSD-src-e576be9a24c311d9bcc8babdedb7ee086cc6f92c.zip FreeBSD-src-e576be9a24c311d9bcc8babdedb7ee086cc6f92c.tar.gz |
Don't try to print a completion percentage for zero-size files.
PR: 27780
Submitted by: Craig Leres <leres@ee.lbl.gov>
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r-- | usr.bin/fetch/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index ecc4691..d05b483 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -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, |