[Yum-devel] PATCH: bandwidth limit option parsing
seth vidal
skvidal at phy.duke.edu
Wed Oct 13 04:20:55 UTC 2004
On Sun, 2004-10-10 at 17:52 +1000, Menno Smits wrote:
> -----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.
So I'm looking at this patch and I realize it's sorta in the wrong
place.
shouldn't these options be set per repository and not globally?
b/c the grabbers are being setup per-repository, not globally.
-sv
More information about the Yum-devel
mailing list