mirror of
https://github.com/moparisthebest/curl
synced 2024-11-05 00:55:04 -05:00
859ac36021
- Move the size modifier detection code from limit-rate to its own function so that it can also be used with max-filesize. Size modifiers are the suffixes such as G (gigabyte), M (megabyte) etc. For example --max-filesize 1G Ref: https://curl.haxx.se/mail/archive-2017-12/0000.html Closes https://github.com/curl/curl/pull/2179
19 lines
779 B
Makefile
19 lines
779 B
Makefile
Long: limit-rate
|
|
Arg: <speed>
|
|
Help: Limit transfer speed to RATE
|
|
---
|
|
Specify the maximum transfer rate you want curl to use - for both downloads
|
|
and uploads. This feature is useful if you have a limited pipe and you'd like
|
|
your transfer not to use your entire bandwidth. To make it slower than it
|
|
otherwise would be.
|
|
|
|
The given speed is measured in bytes/second, unless a suffix is appended.
|
|
Appending 'k' or 'K' will count the number as kilobytes, 'm' or 'M' makes it
|
|
megabytes, while 'g' or 'G' makes it gigabytes. Examples: 200K, 3m and 1G.
|
|
|
|
If you also use the --speed-limit option, that option will take precedence and
|
|
might cripple the rate-limiting slightly, to help keeping the speed-limit
|
|
logic working.
|
|
|
|
If this option is used several times, the last one will be used.
|