From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 29 15:08:32 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFDDE106564A for ; Fri, 29 Jul 2011 15:08:32 +0000 (UTC) (envelope-from bsdlisten@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6CC4B8FC0C for ; Fri, 29 Jul 2011 15:08:31 +0000 (UTC) Received: by fxe4 with SMTP id 4so3246436fxe.13 for ; Fri, 29 Jul 2011 08:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=U5MBIhqJvmUQ3MdoHPKth+VLbfqvuiz3Pb2KWAGH/9o=; b=u/hLUR+CoMbx8qlQgJtJZ8e5V8RGxieNsplvWz+Wm8MBEzdU2U6YjcO3VPrqux6lh2 onTfpdEYLmV/TFFCbSQ4e+WK+IRf25rHZd/h+yOimxzUQpa8RVaLkhjpSTz1PKHUO6Ca 5H9z3kauCJiwcuCJ3aH6Q8vJsNHO4BS7F0SvI= Received: by 10.223.54.90 with SMTP id p26mr1951261fag.44.1311950347828; Fri, 29 Jul 2011 07:39:07 -0700 (PDT) Received: from [192.168.0.105] ([89.47.83.116]) by mx.google.com with ESMTPS id e10sm1129869fak.18.2011.07.29.07.39.06 (version=SSLv3 cipher=OTHER); Fri, 29 Jul 2011 07:39:06 -0700 (PDT) Message-ID: <4E32C609.3030108@gmail.com> Date: Fri, 29 Jul 2011 17:39:05 +0300 From: Rares Aioanei User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: multipart/mixed; boundary="------------030903060605040705020900" Subject: Small fetch(1) patch to improve xfer stats readability X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2011 15:08:33 -0000 This is a multi-part message in MIME format. --------------030903060605040705020900 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit While fetch, (as invoked by portsnap, in my case) displays the completion percentage just fine, when it reaches 100% the output becomes a little messy : - of Now, when it gets to 100%, the string "100%" gets stuck by the hashnumber, e.g. '98727300a76bn062f901100% completed of 65 MB 500KBps 00:00 This little patch fixes the problem. Since this is my first attempt at sending a patch, please bare with me. :-) --------------030903060605040705020900 Content-Type: text/x-patch; name="fetch.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fetch.patch" 213c213 < fprintf(stderr, " %3d%% of %s", --- > fprintf(stderr, "%3d%% of %s", --------------030903060605040705020900--