From owner-freebsd-bugs Sat Oct 6 21:20: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 63A1937B40C for ; Sat, 6 Oct 2001 21:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f974K1c60211; Sat, 6 Oct 2001 21:20:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A641937B401 for ; Sat, 6 Oct 2001 21:15:33 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f974FXq59933; Sat, 6 Oct 2001 21:15:33 -0700 (PDT) (envelope-from nobody) Message-Id: <200110070415.f974FXq59933@freefall.freebsd.org> Date: Sat, 6 Oct 2001 21:15:33 -0700 (PDT) From: Greg Moncreaff To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/31094: show more precision in fetch % complete Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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