aMule Forum

English => Feature requests => Topic started by: sup on February 06, 2006, 12:26:27 AM

Title: upload limit set dynamically depending on daytime and two more suggestions
Post by: sup on February 06, 2006, 12:26:27 AM
Hello,
1)I use shared connection so I limit (using HTB and ipp2p) p2p traffic depending on daytime - heavily shaped during afternoon and evening, lightly shaped din the morning morning and no shaping at all at night. However, since (as far as I understand it) downloads needs some free upload in order to be initiated and this cannot be accomplished outside amule, I have my upload limit set  to something a little bit lower then is the limit from HTB for evening - so I do not upload as much as I could. It would be great if it were possible to set upload (or download) limit according to daytime.

2)I noticed, that when searching using extended parameters and I specifi min lenght, i also mus specify max lenght. I think it would be much more user friendly, if amule supposed the max limit to be infinitely higher, I usually search either something very small or something very large (i.e. knopix CD images or subtitles to old copyright free movies such as Metropolis).

3)I do not know if this is amule thing or protocol thing, but I think comments as are right now are not very usefull, since as far as I understand, I can comment only files in my sharelist and when I remove a file from my sharelist, comments on it disappear. Since files in my sharelist (and I do not know if I am an exception or a rule) are changed quite often, I do not really have any motivation for comments on files. Could it somehow be made that comments would stick to a file even if one deletes them from sharelist?
Title: Re: upload limit set dynamically depending on daytime and two more suggestions
Post by: Xaignar on February 06, 2006, 12:38:45 AM
1) You can accomplish this with crontab and amulecmd.
2) Fixed in SVN and the fix will of course be included in 2.1.1.
3) Not currently possible. It would require that comments are either saved on the servers or keept floating on Kad.
Title: Re: upload limit set dynamically depending on daytime and two more suggestions
Post by: sup on February 06, 2006, 12:52:40 AM
thanks for real quick reply...
however,
1)although I will probably use amulecmd to fulfill my needs, a grafical gui si always nice;-)
3)I understand that, but if you have any influence on developing Kad protocol, it would be nice if this got there even in longer run. I am always so disappointed when this Knopix CD is French instead of English and I must download it again.
Title: Re: upload limit set dynamically depending on daytime and two more suggestions
Post by: Seven.issimo on March 13, 2006, 10:48:56 AM
I think that can be more useful have a variable range of speed limits.
for example, like in Azureus, supposing that items (in popup speed limit menu) are 10-20-30-40-50, when I limit speed to 20kbs, other items changes to closer value (ie. 15 - 18-20-22-25).
so if I want set uplimit to 18kbs, I can do from tray icon's popup.

what about ?
Title: Re: upload limit set dynamically depending on daytime and two more suggestions
Post by: Kry on March 13, 2006, 12:50:37 PM
Kad notes float around, we just can't read them yet.
Title: Re: upload limit set dynamically depending on daytime and two more suggestions
Post by: Seven.issimo on March 14, 2006, 11:07:16 AM
Sorry ?! I don't understand ?(

concept in metacode:
Code: [Select]
array items = [10,20,30,40,50];
int up_limit = read_user_uplimit();

if (up_limit % 10 == 0) {
  items = [up_limit-20,up_limit-10,up_limit,up_limit+10,up_limit+20];
} else if (up_limit % 5 == 0) {
  // closer to setted value
  items = [up_limit-10,up_limit-5,up_limit,up_limit+5,up_limit+10];
} else if (up_limit % 2 == 0) {
  // closer
  items = [up_limit-4,up_limit-2,up_limit,up_limit+2,up_limit+4];
} else if (up_limit % 1 == 0) {
  // closer ...
  items = [up_limit-2,up_limit-1,up_limit,up_limit+1,up_limit+2];
} else {
  // if zero (not required in real code)
  items = [10,20,30,40,50];
}

bye, ;)
  -Matteo
Title: Re: upload limit set dynamically depending on daytime and two more suggestions
Post by: lfroen on March 15, 2006, 01:24:18 PM
Quote
Sorry ?! I don't understand

I don't understand it either. WTF is that ?
Title: Re: upload limit set dynamically depending on daytime and two more suggestions
Post by: Seven.issimo on March 15, 2006, 06:56:07 PM
Quote
Originally posted by lfroen
Quote
Sorry ?! I don't understand

I don't understand it either. WTF is that ?

supposing that _items_ are the items' value of up/download speed-limit menu (in systray popup), this is an example of how could be the function to generate items in order to have a _variable-range_ speed-limit menu.

cheers,
  -Seven