From: raptor@unacs.bg Date: Fri, 26 Jul 2002 19:22:41 +0000 Subject: [LARTC] [tcng] weird request Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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... raptor@unacs.bg _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/