Commit a176b1f2 authored by zhouwei's avatar zhouwei

修改统计错误率的时间窗口

parent db84f301
......@@ -98,7 +98,7 @@ public class FailoverGatewayFilterFactory extends AbstractGatewayFilterFactory<F
}
}
}
log.info("failedRequests:{}, totalRequests:{}", failedRequests, totalRequests);
return totalRequests == 0 ? 0 : (double) failedRequests / totalRequests;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment