Page 1 of 1

QueueTree in %

Posted: Sun Jun 06, 2010 8:10 pm
by hajde
Before min or two i have finish with l7 qos. On the tree I belive is bether to have limit at. and max limit in % insted in kbps. For exapmle write now I have 50mbps/50mbps but in future I will have more. than I must change all speeds on every QueueTree.

Re: QueueTree in %

Posted: Mon Jun 07, 2010 12:28 am
by Muqatil
You can make a script to set your limits as %
You can adapt my script to your needs..
{
#Those Variables are the % of the total limit
:local TOTAL 50000000;
:local P2P 40;
:local MAIL 24;
:local GAMES 15;
:local VOIP 30;
:local WWW 70;
# Sets Limits To the Queues

	/queue tree set "Download Total" max-limit=($TOTAL ); 
	/queue tree set "P2P d" max-limit=($TOTAL * $P2P / 100);
	/queue tree set "WWW d" max-limit=($TOTAL * $WWW / 100);
	/queue tree set "Mail d" max-limit=($TOTAL * $MAIL / 100);
	/queue tree set "VoIP d" max-limit=($TOTAL * $VOIP / 100);
	/queue tree set "Games d" max-limit=($TOTAL * $GAMES / 100);
}

Re: QueueTree in %

Posted: Mon Jun 07, 2010 12:41 am
by hajde
Thank you very much for a good idea, and also for example.