[PATCH 2/2] retag: Properly display the final count

Finucane, Stephen stephen.finucane at intel.com
Tue Nov 10 02:30:22 AEDT 2015


> On Mon, Nov 09, 2015 at 03:20:39PM +0000, Finucane, Stephen wrote:
> > > That wouldn't work either. On the last iteration (count - 1)/count
> would
> > > be printed and count/count would never be printed.
> >
> > Right you are. What on earth was that code doing there at all? :)
> 
> Actually, because i goes from 0 to count - 1, another option is to print
> (i + 1)/count, and the i == count - 1 condition could then ben used.

Which option would you prefer?

Stephen


More information about the Patchwork mailing list