We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b5f877 commit 7bf98e3Copy full SHA for 7bf98e3
1 file changed
packages/mitmproxy/src/lib/choice/index.js
@@ -109,13 +109,11 @@ class DynamicChoice {
109
}
110
111
if (isError) {
112
- // 失败次数+1,累计连续失败次数+1
113
- count.error++
114
- count.keepErrorCount++
115
- } else {
116
- // 总次数+1
117
- count.total++
+ count.error++ // 失败次数+1
+ count.keepErrorCount++ // 累计连续失败次数+1
118
+ count.total++ // 总次数+1
+
119
// 计算成功率
120
count.successRate = 1.0 - (count.error / count.total)
121
if (isError && this.value === ip) {
0 commit comments