From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 29 14:57:44 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F48D1065672 for ; Fri, 29 Jul 2011 14:57:44 +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 D21EB8FC13 for ; Fri, 29 Jul 2011 14:57:43 +0000 (UTC) Received: by fxe4 with SMTP id 4so3235035fxe.13 for ; Fri, 29 Jul 2011 07:57:42 -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=IisRNY0LAyvUs6LWuSPMt4u/Pe1QAhUIpxFSgxNQJUo=; b=hlqSPR5751/xpXnN6BljKDZFbihdHJJiUMS3FXHM6mDtG/TMwkt8/4AXwIareEo3ex yzUVKJRn5zsRhWFOTQQHHF5kvG4bm9z2ydPtZXCGOQIdvZao3QUF5qzesp4le1Rjm/ct Q+q1tDPtnnPlYAs/EnwV+NYiLHaQvc37QzYxg= Received: by 10.223.18.25 with SMTP id u25mr1881223faa.69.1311950106151; Fri, 29 Jul 2011 07:35:06 -0700 (PDT) Received: from [192.168.0.105] ([89.47.83.116]) by mx.google.com with ESMTPS id y15sm1102728fah.35.2011.07.29.07.35.03 (version=SSLv3 cipher=OTHER); Fri, 29 Jul 2011 07:35:04 -0700 (PDT) Message-ID: <4E32C516.3000206@gmail.com> Date: Fri, 29 Jul 2011 17:35:02 +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: hackers@FreeBSD.org Content-Type: multipart/mixed; boundary="------------070208050506080506030206" Cc: 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 14:57:44 -0000 This is a multi-part message in MIME format. --------------070208050506080506030206 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. :-) --------------070208050506080506030206 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", --------------070208050506080506030206--