rejetto forum
May 25, 2012, 10:56:37 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Speed Limit  (Read 979 times)
0 Members and 1 Guest are viewing this topic.
therise
Occasional poster
*
Offline Offline

Malaysia Malaysia

Posts: 14


View Profile Email
« on: March 10, 2011, 06:36:56 PM »

Just want to ask, is it possible if for example, max speed is 1MB/s. Then got 10 different IP connecting to my server. Then it will limit the speed into 100KB/s per IP. But when 20 different IP connecting, the limit change to 50KB/s. It more about ratio/percentage to have fair speed to each user.

Thanks in advanced.  Grin
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: March 14, 2011, 10:20:29 AM »

it will be possible from next release of HFS 2.3 (build number 276).
The current one lacks the needed feature.

I leave her the instructions you'll have to use with it:
ALT+F6 and put this very simple script
Code:
[+connected=+disconnected]
{.set speed limit for address|{.div|1000|{.max|1|%number-addresses%.}.}.}

Follow members gave a thank to your post:

therise

For this post, 1 member gave a thank you!
Logged
therise
Occasional poster
*
Offline Offline

Malaysia Malaysia

Posts: 14


View Profile Email
« Reply #2 on: March 15, 2011, 01:56:23 AM »

First of all, I would like to thank you rejetto for your reply.

Hmm.. I'm a bit newbie on this, after putting
Code:
[+connected=+disconnected]
{.set speed limit for address|{.div|1000|{.max|1|%number-addresses%.}.}.}

What I have to do next? I did search around this forum but I can't find any (may be I use wrong keyword). Where can I get those guide?

Btw, we are looking forward for build 276! Totally awesome!
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #3 on: March 15, 2011, 05:59:31 AM »

Hmm.. I'm a bit newbie on this,

 I did search around this forum but I can't find any (may be I use wrong keyword). Where can I get those guide?

http://www.rejetto.com/forum/index.php?topic=1939.msg1032472#msg1032472

 Wink

Follow members gave a thank to your post:

therise

For this post, 1 member gave a thank you!
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #4 on: March 16, 2011, 01:45:06 PM »

What I have to do next?

after pasting the text?
save.
and enjoy.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #5 on: March 16, 2011, 02:11:16 PM »

the version above works perfectly, but in case you get 3 connections, you get 333.333333333333 KB/s limit for connection.
this version instead avoids the useless decimals

[+connected=+disconnected]
{.set speed limit for address|{.round|{.div|1000|{.max|1|%number-addresses%.}.}.}.}

Follow members gave a thank to your post:

therise

For this post, 1 member gave a thank you!
Logged
rejetto forum
« Reply #5 on: March 16, 2011, 02:11:16 PM »

Do you like this software? Consider even $2
 Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #6 on: March 16, 2011, 02:15:15 PM »

as a plus, i'll add the possibility for scripts to read the current speed limit.
So that the above script may depend on the global speed limit, instead of the fixed number 1000.
Logged
therise
Occasional poster
*
Offline Offline

Malaysia Malaysia

Posts: 14


View Profile Email
« Reply #7 on: March 16, 2011, 10:31:46 PM »

as a plus, i'll add the possibility for scripts to read the current speed limit.
So that the above script may depend on the global speed limit, instead of the fixed number 1000.

so the 1000 is fixed? how if i want to make for example, when the speed 1200 and got 4 connection each can get 300... and when the speed suddenly change to 1600 and each can get 400.... is that possible?

Thanks for both rojetto and Mars helping me. I really appreciate it.  Cheesy
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #8 on: March 17, 2011, 12:22:04 PM »

don't you see the 1000 in the script i gave you?
you can just change that number.
Logged
therise
Occasional poster
*
Offline Offline

Malaysia Malaysia

Posts: 14


View Profile Email
« Reply #9 on: March 17, 2011, 03:29:02 PM »

don't you see the 1000 in the script i gave you?
you can just change that number.


Sorry~ sorry~
I don't know that I can change the number for change whole speed.. Thanks again. Peace...  Cheesy
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #10 on: March 17, 2011, 04:59:16 PM »

anyway, if you prefer, you can replace the 1000 with {.get|speed limit.}
and you will set the limit from HFS menu.

Follow members gave a thank to your post:

therise

For this post, 1 member gave a thank you!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 18, 2012, 12:54:14 AM
anything