Don't try to use a probibility >= 1.00000000

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2015-05-23 07:06:31 -07:00
parent df4d6f1f92
commit c851e03313

View File

@ -645,7 +645,15 @@ scale=8
$totalload - $load $totalload - $load
EOF EOF
) )
case $load in
.*|0.*)
run_iptables -t mangle -A ~$interface -m statistic --mode random --probability $load -j MARK --set-mark $mark run_iptables -t mangle -A ~$interface -m statistic --mode random --probability $load -j MARK --set-mark $mark
;;
*)
run_iptables -t mangle -A ~$interface -j MARK --set-mark $mark
;;
esac
fi fi
done done
fi fi