]> git.proxmox.com Git - pve-common.git/commitdiff
network: tap_rate_limit: fix uninitialized value
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 8 Mar 2016 13:14:55 +0000 (14:14 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 9 Mar 2016 11:38:31 +0000 (12:38 +0100)
data/PVE/Network.pm

index df6ad761d70154da4cc393c643e26460e440c9df..eda370068fb4886d24d8e22bae91b9f9547415f6 100644 (file)
@@ -47,7 +47,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);