mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
Make --limit-rate [num] mean bytes. Seems I broke it back in november 2005...
This commit is contained in:
parent
5994b62930
commit
54cbd7e154
@ -1512,7 +1512,9 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
||||
char *unit;
|
||||
curl_off_t value = curlx_strtoofft(nextarg, &unit, 0);
|
||||
|
||||
if(strlen(unit) != 1)
|
||||
if(!*unit)
|
||||
unit="b";
|
||||
else if(strlen(unit) > 1)
|
||||
unit=(char *)"w"; /* unsupported */
|
||||
|
||||
switch(*unit) {
|
||||
|
Loading…
Reference in New Issue
Block a user