]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_getparam: Support size modifiers for --max-filesize
authorGisle Vanem <gisle.vanem@gmail.com>
Sun, 17 Dec 2017 22:26:10 +0000 (17:26 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 26 Dec 2017 07:01:48 +0000 (02:01 -0500)
commit859ac3602159ef3df77ac4cb1ae191b069ff1b5b
tree80eae8e7fa9d6505c16190422be22c5b8ce324df
parentb399b04902c43f479b51b142505700edcfc34271
tool_getparam: Support size modifiers for --max-filesize

- 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
docs/cmdline-opts/limit-rate.d
docs/cmdline-opts/max-filesize.d
src/tool_getparam.c