Date: Sat, 6 Oct 2001 21:15:33 -0700 (PDT) From: Greg Moncreaff <moncrg@ma.ultranet.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/31094: show more precision in fetch % complete Message-ID: <200110070415.f974FXq59933@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 31094 >Category: bin >Synopsis: show more precision in fetch % complete >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: wish >Submitter-Id: current-users >Arrival-Date: Sat Oct 06 21:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Greg Moncreaff >Release: 4.4 >Organization: >Environment: >Description: with large downloads on slow connection the fetch % complete doesn't update meaninfully >How-To-Repeat: >Fix: cvs diff -u fetch.c Index: fetch.c =================================================================== RCS file: /home/ncvs/src/usr.bin/fetch/fetch.c,v retrieving revision 1.10.2.15 diff -u -r1.10.2.15 fetch.c --- fetch.c 2001/08/16 02:04:00 1.10.2.15 +++ fetch.c 2001/09/23 18:13:34 @@ -129,8 +129,8 @@ if (xs->size <= 0) fprintf(stderr, ": %lld bytes", xs->rcvd); else - fprintf(stderr, " (%lld bytes): %d%%", xs->size, - (int)((100.0 * xs->rcvd) / xs->size)); + fprintf(stderr, " (%lld bytes): %3.1f%%", xs->size, + (float)((100.0 * xs->rcvd) / xs->size)); } void >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110070415.f974FXq59933>