Am Wednesday 06 June 2012 schrieb Hrvoje Niksic: > Tim Ruehsen <[email protected]> writes: > > Am Tuesday 05 June 2012 schrieb Hrvoje Niksic: > >> I'd like to suggest that the new --bit option be named --bps instead. > >> The use case for this option is reporting of download speed in [gmk]bps, > >> not expressing all quantities in bits. Besides, the word "bit" has > >> other meanings (small piece), while "bps" is quite recognizable to the > >> target audience for the option. > > > > I would like to see --report-bps. It explains itself, well, at least > > better than --bps which could be anything. > > Good point. To me --report-bps is also an improvement over --bits. > > > To regard the current question of Fernando Cassia <[email protected]> > > (bug- wget 5.6.2012) (Is there any way to make wget report download > > speed in Kbps not MBps at the end of the transfer?): > > > > --report-bps replaces --bit > > --report-[gmkn]bps would respect the user's demand for explicitly gbps, > > mbps and kbps, with nbps = plain bps without giga, mega or kilo. > > > > What do you think ? > > I think that Wget has already way too many options. :) Note that you > also can't choose how the download speed will be shown with byte > reporting. > > But while we're bikeshedding, how about: > > --report-speed=(bps|nbps|kbps|...) > > and additional features can be added later as syntax additions to the > value recognized by that option.
Very good idea. I like more this generalized approach. I would like to keep the args close to what is described at wikipedia http://en.wikipedia.org/wiki/Byte. b=bits B=bytes decimal (1000^n): k, M, G, ... IEC (1024^n): K/Ki, Mi, Gi, ... So, we have three types of information, which can be combined: a) element size: bits | bytes (default 'bytes') b) display type: decimal | iec (default 'decimal' if a=bits, iec if a=bytes) c) display unit: auto | plain | kilo | mega| giga (default auto) This comes out as --report-speed=flag[, flag [,...]] Examples --report-speed=bits --report-speed=bytes,iec,mega We could introduce some abbrevations like k = decimal,kilo Mi = iec,mega kbps = bits,decimal,auto kBps = bytes,iec,kilo KiBps = bytes,iec,kilo ... How do you like that ? Tim
