mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 16:13:18 +01:00
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:
parent
90e23c8989
commit
226c4a198d
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user