Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181140 - net-p2p/mldonkey init-script fast method not working as intended
Summary: net-p2p/mldonkey init-script fast method not working as intended
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-06 22:14 UTC by Jörg Eitemüller
Modified: 2007-06-08 11:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Eitemüller 2007-06-06 22:14:36 UTC
the method fast() in file /etc/init.d/mldonkey tries to set the HIGH_DOWN before HIGH_UP, thus if you had very low values like 2/6 as LOW_DOWN/LOW_HIGH respectively, HIGH_DOWN might be limited due to a low LOW_DOWN value as you have an internal DOWN-limit with UP-limits lower than 10 kbyte/sec.

Suggestions for a fix:
Simply set new upload-limit before setting new download-limit (swapping the wget --spider lines)

Reproducible: Always

Steps to Reproduce:
1. edit /etc/conf.d/mldonkey and set LOW_DOWN="4",LOW_UP="2",HIGH_DOWN="100",HIGH_UP="10"
2. run /etc/init.d/mldonkey slow
3. run /etc/init.d/mldonkey fast

Actual Results:  
max_hard_download_rate inside mldonkey will be set to "6" (as 6 is the maximum down-limit allowed for an up-limit of 2)

Expected Results:  
max_hard_download_rate inside mldonkey should be set at "100"
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2007-06-08 11:17:45 UTC
Indeed, thanks for noticing that.

Fixed.