Re: [PATCH 2] count-objects: add human-readable size option

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marcus Griep
Date: Thursday, August 14, 2008 - 9:26 am

Petr Baudis wrote:

I was not. After reviewing it, it is limited to its purposes (who's got
transfer speeds in TiB/s?), but consolidating the human-readable-ness is
a good idea.


In general, "b" would be supplied as a part of the suffix, so that is no
longer in the prefix list.  The distinction comes with kilo vs. kibi.  In
an earlier email reply, I mentioned a flag to denote SI versus binary
periods.  In common nomenclature, Kilo (1000) is designated 'k', while
Kibi (1024) is designated 'K' (the 'i' after the 'K' is supplied by the
suffix if desired).  Thus, if the user wants binary, they'll get the capital
'K', and if they want SI, they'll get the lowercase 'k'.

Sound reasonable?

-- 
Marcus Griep
GPG Key ID: 0x5E968152
——
http://www.boohaunt.net
את.ψο´
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2] count-objects: add human-readable size option, Marcus Griep, (Wed Aug 13, 9:21 pm)
Re: [PATCH 2] count-objects: add human-readable size option, Shawn O. Pearce, (Wed Aug 13, 9:38 pm)
Re: [PATCH 2] count-objects: add human-readable size option, Junio C Hamano, (Wed Aug 13, 10:22 pm)
Re: [PATCH 2] count-objects: add human-readable size option, Johannes Schindelin, (Thu Aug 14, 7:05 am)
Re: [PATCH 2] count-objects: add human-readable size option, Marcus Griep, (Thu Aug 14, 9:26 am)
Re: [PATCH 2] count-objects: add human-readable size option, Pierre Habouzit, (Fri Aug 15, 2:22 am)