Changeset 21415 for packages/net/multiwan/files/usr/bin/multiwan
 Timestamp:
 20100510T17:19:34+02:00 (6 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

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.