diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-10-31 14:24:35 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-10-31 14:24:35 +0000 |
| commit | 5745420bb078a40a4e9a851c40379145869a0eeb (patch) | |
| tree | 4fcbd22f89ec42d4f31491440bd9cb2b3493a588 /usr.bin/fetch | |
| parent | 6e710be0def89e8d4c6000287d3d8e77fd14ad87 (diff) | |
Notes
Diffstat (limited to 'usr.bin/fetch')
| -rw-r--r-- | usr.bin/fetch/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/fetch/main.c b/usr.bin/fetch/main.c index 62a84fe32e8b..b9440bbaaf21 100644 --- a/usr.bin/fetch/main.c +++ b/usr.bin/fetch/main.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. */ -/* $Id: main.c,v 1.24 1996/10/06 00:44:24 jmz Exp $ */ +/* $Id: main.c,v 1.25 1996/10/24 00:15:44 adam Exp $ */ #include <sys/types.h> #include <sys/socket.h> @@ -443,7 +443,9 @@ display (int size, int n) return; t0 = t; pr++; - if (size > 0) + if (size > 1000000) + printf ("\r%s: %2d%%", s, bytes/(size/100)); + else if (size > 0) printf ("\r%s: %2d%%", s, 100*bytes/size); else printf ("\r%s: %d Kbytes", s, bytes/1024); |
