[packages] multiwan: Fixed last WAN probability to be 1.0.

git-svn-id: svn://svn.openwrt.org/openwrt/packages@21416 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
craigc 2010-05-10 16:54:53 +00:00
parent 9ab7bbda14
commit a4a9ca982e
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=multiwan
PKG_VERSION:=1.0.7
PKG_RELEASE:=1
PKG_RELEASE:=2
include $(INCLUDE_DIR)/package.mk

View File

@ -692,7 +692,7 @@ last_probability=$rand_probability
if [ $rand_probability -lt 10 ]; then
rand_probability="0.0${rand_probability}"
elif [ $rand_probability -lt 100 ]; then
elif [ $rand_probability -lt 100 -a $i != $wancount ]; then
rand_probability="0.${rand_probability}"
else
rand_probability="1.0"