Combine some TC code

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5904 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-12 17:40:22 +00:00
parent 90e23c8989
commit 226c4a198d

View File

@ -449,8 +449,7 @@ sub setup_traffic_shaping() {
my $devnum = $devref->{number};
my $classid = "$devnum:${prefix}${mark}";
my $rate = $tcref->{rate};
my $r2q = calculate_r2q $devref->{out_bandwidth};
my $quantum = calculate_quantum $rate, $r2q;
my $quantum = calculate_quantum $rate, calculate_r2q( $devref->{out_bandwidth} );
my $dev = chain_base $device;
if ( $lastdevice ne $device ) {