Skip to contentSkip to conversation

weird request

LARTC [email protected] 1 participant 1 message Jul 26, 2002

lore
Share & tools
lore
#0 lore raw

Is there a way to count the childrens of a class i.e.

I want to do something like this.. Explantion :

$count = class(5).childrensCount;
$rate = (0.7/$count);

htb(rate 1Mbps, ceil 1Mbps) {
	class(5, rate 0.7Mbps, ceil 1Mbps) { 
		class(rate $rate Mbps, ceil 0.6Mbps) {};
		class(rate $rate Mbps, ceil 0.6Mbps) {};
		class(rate $rate Mbps, ceil 0.5Mbps) {};
		..............................
	}
	class(rate 0.3Mbps, ceil 1Mbps) {
		...similar thing
	}
}

So that rates scalles according to the count of the children...

[email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/