fix: 修复性能测试计算并发数的问题
--bug=1009785 --user=刘瑞斌 【性能测试】github#9571,线程组的并发用户数总和应该为开启的线程组的和,而不是所有的线程组 https://www.tapd.cn/55049933/s/1095072 Closes #9571
This commit is contained in:
parent
4f8723656e
commit
e40af330cd
|
@ -143,15 +143,25 @@ public abstract class AbstractEngine implements Engine {
|
|||
if (next instanceof List) {
|
||||
List<Object> o = (List<Object>) next;
|
||||
for (Object o1 : o) {
|
||||
if (StringUtils.equals(JSONObject.parseObject(o1.toString()).getString("deleted"), "true")) {
|
||||
iterator.remove();
|
||||
continue outer;
|
||||
JSONObject jsonObject = JSONObject.parseObject(o1.toString());
|
||||
String key = jsonObject.getString("key");
|
||||
if (StringUtils.equals(key, "deleted")) {
|
||||
String value = jsonObject.getString("value");
|
||||
if (StringUtils.equals(value, "true")) {
|
||||
iterator.remove();
|
||||
continue outer;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (Object o1 : o) {
|
||||
if (StringUtils.equals(JSONObject.parseObject(o1.toString()).getString("enabled"), "false")) {
|
||||
iterator.remove();
|
||||
continue outer;
|
||||
JSONObject jsonObject = JSONObject.parseObject(o1.toString());
|
||||
String key = jsonObject.getString("key");
|
||||
if (StringUtils.equals(key, "enabled")) {
|
||||
String value = jsonObject.getString("value");
|
||||
if (StringUtils.equals(value, "false")) {
|
||||
iterator.remove();
|
||||
continue outer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue