Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH 5/6] Use floating point for --dirstat percentages

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:51:06

On Tue, Apr 26, 2011 at 9:42 PM, Junio C Hamano [off-list ref] wrote:
If that is the case, I would rather not see us use floating point for
this.
Considering that we still just output with a tenth of a percent
granularity, I'd suggest just continuing with using permille
internally - including for the limit.

So instead of actually using floating point, just parsing a single
digit worth of fractional percent would be beautiful. IOW, being able
to say

  --dirstat=1.5

to give a 1.5% cut-off point would be really nice - but then
internally just saying "15 permille" and using integers all the way?

Doing all the fake floating point by hand also obviously then avoids
the whole LC_NUMERIC locale issue.

                        Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help