mirror of
https://git.proxmox.com/git/pve-common
synced 2025-05-28 04:36:32 +00:00
network: tap_rate_limit: fix uninitialized value
This commit is contained in:
parent
5a917b429a
commit
ad066ae2de
@ -108,7 +108,7 @@ sub tap_rate_limit {
|
||||
my ($iface, $rate) = @_;
|
||||
|
||||
my $debug = 0;
|
||||
$rate = int($rate*1024*1024);
|
||||
$rate = int($rate*1024*1024) if $rate;
|
||||
my $burst = 1024*1024;
|
||||
|
||||
setup_tc_rate_limit($iface, $rate, $burst, $debug);
|
||||
|
Loading…
Reference in New Issue
Block a user