summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-06-01 10:24:58 +0000
committerdes <des@FreeBSD.org>2001-06-01 10:24:58 +0000
commite576be9a24c311d9bcc8babdedb7ee086cc6f92c (patch)
treec112fe5f18d271cdb77717bf7c9d482b6acbdd73 /usr.bin/fetch
parente7a85be33fc3bc164d55aaa44eda7f972ff86850 (diff)
downloadFreeBSD-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.c2
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,
OpenPOWER on IntegriCloud