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?
XFileSharing Pro - [QUESTION] Possible to change Max bandwidth, hour -> day
-
- Posts: 19
- Joined: May 28, 2008 12:56 am
[QUESTION] Possible to change Max bandwidth, hour -> day
Last edited by Rocket_Man on May 30, 2008 10:27 pm, edited 1 time in total.
-
- Posts: 19
- Joined: May 28, 2008 12:56 am
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
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
and replace 3600 with 3600*24
And use hour-limit in config as day-limit actually then.
But here goes quick hack for you if you wanna use limit per day instead of per hour:
in index.cgi find
Code: Select all
3600*$file->{file_size}/($c->{mb_per_hour}*1048576
And use hour-limit in config as day-limit actually then.
-
- Posts: 19
- Joined: May 28, 2008 12:56 am
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
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?
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..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?
I like this feature, but not remove hour/ip... add this to the script..
Regards.
-
- Posts: 19
- Joined: May 28, 2008 12:56 am