bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] --bit option name


From: Tim Ruehsen
Subject: Re: [Bug-wget] --bit option name
Date: Wed, 6 Jun 2012 13:10:59 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; )

Am Wednesday 06 June 2012 schrieb Hrvoje Niksic:
> Tim Ruehsen <address@hidden> 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 <address@hidden>
> > (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]