Re: [PATCH 1/1] Improve progress display in kB range.
- From
James Cloos <cloos@jhcloos.com>
- Date
- Apr 24, 2009, 22:20 UTC
- Message-ID
- <m3tz4dhewa.fsf@lugabout.jhcloos.org>
- In-Reply-To
- <alpine.LFD.2.00.0904241722220.6741@xanadu.home>
>>>>> "Nicolas" == Nicolas Pitre <nico@cam.org> writes:
>> Will a patch which does round-to-nearest (instead of the current >> round-to-zero) be accepted?
Nicolas> Sure. What about this (untested):
Nicolas> + int x = total + 5243; /* for rounding */ Nicolas> + int x = total + 5; /* for rounding */
That looks correct.
-JimC
-- James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6