请高人帮我修改下代码 下面这段代码不支持3.X 2.X可以使用
:local RxCurRate 0:local RxCurSet 0
:local RxResRate 0
:local RxMaxRate 0
:local RxStepRatedown 0
:local RxRangRate 0
:local RxMaxPcq 0
interface monitor wan once do={:set RxCurRate $received-bits-per-second}
:set RxCurSet pcq-rate]
:set RxResRate 400000
:set RxMaxRate 17000000
:set RxStepRatedown 15000
:set RxRangRate 15000
:set RxMaxPcq 1200000
:if($RxCurRate>($RxMaxRate+-$RxResRate+$RxRangRate)&&$RxCurSet>$RxResRate) do={
:set RxCurSet ($RxCurSet+-$RxStepRatedown)
:if($RxCurSet<$RxResRate) do={:set RxCurSet $RxResRate}
/queue type set "PCQ-Download" kind=pcq pcq-rate=$RxCurSet pcq-classifier=dst-address
/ip firewall mangle disable
}
:if($RxMaxRate+-$RxCurRate>1000000) do={
:set RxMaxPcq 5000000
}
:if($RxCurRate<($RxMaxRate+-$RxResRate+-$RxRangRate)&&$RxCurSet<$RxMaxRate) do={
:set RxCurSet ($RxCurSet+($RxMaxRate+-$RxResRate+-$RxCurRate)/100)
:if($RxCurSet>=$RxMaxPcq) do={
:set RxCurSet $RxMaxPcq
/ip firewall mangle enable
}
/queue type set "PCQ-Download" kind=pcq pcq-rate=$RxCurSet pcq-classifier=dst-address
}
上面那段代码,3.X下使用不了。,高手帮忙修改下, 有 找找把 回复 2# 47771885
找不到啊老大。你发的那个,3.24 3.13下无法运行 hehe....
页:
[1]