Commit 54cbd7e1 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Make --limit-rate [num] mean bytes. Seems I broke it back in november 2005...

parent 5994b629
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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) {