[pve-devel] [PATCH] fix return !$rate

Alexandre Derumier aderumier at odiso.com
Tue Mar 5 14:46:47 CET 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 data/PVE/Network.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/PVE/Network.pm b/data/PVE/Network.pm
index 8f82686..fdf0133 100644
--- a/data/PVE/Network.pm
+++ b/data/PVE/Network.pm
@@ -16,7 +16,7 @@ sub setup_tc_rate_limit {
     system("/sbin/tc qdisc del dev $iface ingress >/dev/null 2>&1");
     system("/sbin/tc qdisc del dev $iface root >/dev/null 2>&1");
 
-    return if (!$rate || ($rate && $rate == 0));
+    return if !$rate;
 
     run_command("/sbin/tc qdisc add dev $iface handle ffff: ingress");
 
-- 
1.7.10.4




More information about the pve-devel mailing list