Date: Fri, 29 Jul 2011 17:39:05 +0300 From: Rares Aioanei <bsdlisten@gmail.com> To: freebsd-hackers@freebsd.org Subject: Small fetch(1) patch to improve xfer stats readability Message-ID: <4E32C609.3030108@gmail.com>
next in thread | raw e-mail | index | archive | help
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 : -<hashnumber> <percentage_completed> of <MB> <KBps> <time_left> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E32C609.3030108>