Re: [PATCH 1/2] diff --stat: use asymptotic scaling in graph
- From
Martin Waitz <tali@admingilde.org>
- Date
- Oct 12, 2006, 20:16 UTC
- Message-ID
- <20061012201646.GC10922@admingilde.org>
- In-Reply-To
- <d620685f0610121237k458665c5m7bbde2d565d7ef81@mail.gmail.com>
hoi :)
On Thu, Oct 12, 2006 at 03:37:17PM -0400, apodtele wrote:
> Instead of conditionally scaling the stat graph for large changes, > always scale it asymptotically: small changes shall appear without any > distortions.
very nice idea!
> + return it * width / (it + width) + 1;
but wouldn't this formula result in at least 1, even for a 0 change? Perhaps we'd have to special case an input of 0?
-- Martin Waitz