[Yum-devel] PATCH: bandwidth limit option parsing
Menno Smits
menno-yum at freshfoo.com
Sun Oct 10 07:52:36 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
As discussed earlier on this yum-devel, please find attached a patch
that implements parsing for the yum.conf "bandwidth" and "throttle"
options.
I've taken in to account Michael Stenner's comments about what sort of
bandwidth values should be accepted. All bandwidth values are in
bytes/sec with an optional SI prefix. To avoid confusion the case of the
prefix is ignored. "throttle" may be a percentage (eg. "50%") or a
bytes/sec value as accepted for "bandwidth".
Valid and invalid values for the settings are documented at the top of
parseByteVal() and parseThrottle(). I will also update the yum.conf man
page to match.
Regards,
Menno
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBaOpEWH92Dls5JXwRAuhFAKDAPfzEcSUcJtxN/OswmmO/W4+eWwCgg66J
yDswaMRDbEBQ2PIKEP0cJXg=
=/U1H
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-bandwidth-opts.patch
Type: text/x-patch
Size: 3635 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20041010/a1677848/attachment.bin
More information about the Yum-devel
mailing list