aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: upload limit set dynamically depending on daytime and two more suggestions  (Read 4214 times)

sup

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20

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?
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: upload limit set dynamically depending on daytime and two more suggestions
« Reply #1 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.
Logged

sup

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: upload limit set dynamically depending on daytime and two more suggestions
« Reply #2 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.
Logged

Seven.issimo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6

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 ?
Logged
Looking for a new svg icon theme: get Tango-Custom!
Looking for freedom: Stop Trusted Computing!

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795

Kad notes float around, we just can't read them yet.
Logged

Seven.issimo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6

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
Logged
Looking for a new svg icon theme: get Tango-Custom!
Looking for freedom: Stop Trusted Computing!

lfroen

  • Guest

Quote
Sorry ?! I don't understand

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

Seven.issimo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6

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
Logged
Looking for a new svg icon theme: get Tango-Custom!
Looking for freedom: Stop Trusted Computing!