Changeset 21415
 Timestamp:
 20100510T17:19:34+02:00 (7 years ago)
 Location:
 packages/net/multiwan
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

packages/net/multiwan/Makefile
r21414 r21415 9 9 10 10 PKG_NAME:=multiwan 11 PKG_VERSION:=1.0. 611 PKG_VERSION:=1.0.7 12 12 PKG_RELEASE:=1 13 13 
packages/net/multiwan/files/usr/bin/multiwan
r21414 r21415 637 637 local pre_nexthop_chk 638 638 local rand_probability 639 local last_probability 639 640 local total_weight 640 641 local i … … 658 659 659 660 total_weight=0 661 last_probability=0 660 662 661 663 iptables F MultiWanLoadBalancer t mangle … … 686 688 if [ "$gateway" != "x" a "$ifname" != "x" a "$failchk" != "x" a "$weight" != "disable" ]; then 687 689 nexthop="$nexthop nexthop via $gateway dev $ifname weight $weight" 688 rand_probability=$(expr $(expr $weight \* 100) / $total_weight) 690 rand_probability=$(expr $(expr $weight \* 100) / $total_weight + $last_probability) 691 last_probability=$rand_probability 689 692 690 693 if [ $rand_probability lt 10 ]; then
Note: See TracChangeset
for help on using the changeset viewer.