From 1a4a063934c0b57b0ba7a3f2cc4160817cb1caf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 1 Jun 2001 10:24:58 +0000 Subject: [PATCH] Don't try to print a completion percentage for zero-size files. PR: 27780 Submitted by: Craig Leres --- usr.bin/fetch/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index ecc4691c8816..d05b483b26e5 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,