Re: [PATCH 1/2] diff --stat: use asymptotic scaling in graph

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hoi :)

On Thu, Oct 12, 2006 at 03:20:09PM -0700, A Large Angry SCM wrote:
> >+    if (it)
> >+        return it * width / (it + width) + 1;
> >+    else
> >+        return 0;
> 
> No conditional needed:
> 
> 	return it * width / (it + width - 1)

But then it would start scaling much earlier
(for width 10: at 2 instead of 4).
This is not bad per se, but different...

-- 
Martin Waitz

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]