| View previous topic :: View next topic |
| Author |
Message |
Rocket_Man
Joined: 28 May 2008 Posts: 19
|
Posted: May 28, 2008 12:06 pm Post subject: [QUESTION] Possible to change Max bandwidth, hour -> day |
|
|
Hello,
I see in demo it is possible to control Users Limits with the parameter
Max bandwidth per hour (Mbytes per IP)
Is it easy/possible to adjust this to something like
Max bandwidth per day (Mbytes per IP)?
(i want the function Rapidshare has with 25GB/5days, this would almost be the same).
If this is possible I will go for your script ASAP.
-----
Additionally, is it possible to have the Users Limits to follow user account as well as IP? (Problem with this User Limit is if several people are using same account or people use non-static IP). Maybe a future feature?
Last edited by Rocket_Man on May 30, 2008 10:27 pm; edited 1 time in total |
|
| Back to top |
|
 |
Namaless
Joined: 20 Apr 2008 Posts: 107 Location: Italy
|
Posted: May 28, 2008 12:34 pm Post subject: |
|
|
I like feature to limited to user account but in addictional to limited to ip (use all two limits).
Regards. |
|
| Back to top |
|
 |
Rocket_Man
Joined: 28 May 2008 Posts: 19
|
Posted: May 29, 2008 2:04 pm Post subject: |
|
|
yes. Both options is very usefull.
----
Is it possible to control Users Limits to "max bandwidth" "per day" ? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: May 30, 2008 9:43 am Post subject: |
|
|
This is in my TODO list, but I'm leaving on vacation next week, so next version will be in July only.
But here goes quick hack for you if you wanna use limit per day instead of per hour:
in index.cgi find
| Code: | | 3600*$file->{file_size}/($c->{mb_per_hour}*1048576 |
and replace 3600 with 3600*24
And use hour-limit in config as day-limit actually then. |
|
| Back to top |
|
 |
Rocket_Man
Joined: 28 May 2008 Posts: 19
|
Posted: May 30, 2008 10:27 pm Post subject: |
|
|
Brilliant my friend. Thank you for info.
It is good to know your are working with development of the script.
Going to invest in it  |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: Jun 05, 2008 5:58 am Post subject: |
|
|
Yea. Yesterday implemented feature that you can limit each type of user bandwidth X Mb per last Y days. Kind of like in rapidshare.
Will be in next version.
Now not sure if I should remove that current feature when after download we calculate next time when you can download next file, so you see "Wait 12 minutes till next download".
What do you think? |
|
| Back to top |
|
 |
Namaless
Joined: 20 Apr 2008 Posts: 107 Location: Italy
|
Posted: Jun 05, 2008 7:37 am Post subject: |
|
|
| PilgrimX182 wrote: | Yea. Yesterday implemented feature that you can limit each type of user bandwidth X Mb per last Y days. Kind of like in rapidshare.
Will be in next version.
Now not sure if I should remove that current feature when after download we calculate next time when you can download next file, so you see "Wait 12 minutes till next download".
What do you think? |
It's good..
I like this feature, but not remove hour/ip... add this to the script..
Regards. |
|
| Back to top |
|
 |
Rocket_Man
Joined: 28 May 2008 Posts: 19
|
Posted: Jun 06, 2008 1:45 pm Post subject: |
|
|
| PilgrimX182 wrote: | [..]Now not sure if I should remove that current feature when after download we calculate next time when you can download next file, so you see "Wait 12 minutes till next download".
What do you think? |
Please keep this feature. |
|
| Back to top |
|
 |
|