[pve-devel] [PATCH common] network: tap_rate_limit: fix uninitialized value
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Mar 8 12:32:51 CET 2016
---
src/PVE/Network.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/Network.pm b/src/PVE/Network.pm
index 0f92e30..5d26529 100644
--- a/src/PVE/Network.pm
+++ b/src/PVE/Network.pm
@@ -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);
--
2.1.4
More information about the pve-devel
mailing list