From 6e1abd2c7f9e013c0a7aaff47af5ff9d054bd4b0 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 22 Feb 2022 11:20:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E4=BB=A3=E7=A0=81=E7=89=87=E6=AE=B5?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82=E6=9C=AA?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010144 --user=lyh 【项目管理】自定义代码片段执行python接口请求脚本失败 https://www.tapd.cn/55049933/s/1107256 --- .../main/java/io/metersphere/api/jmeter/FixedCapacityUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/jmeter/FixedCapacityUtils.java b/backend/src/main/java/io/metersphere/api/jmeter/FixedCapacityUtils.java index 6837edbc65..088b0bf01b 100644 --- a/backend/src/main/java/io/metersphere/api/jmeter/FixedCapacityUtils.java +++ b/backend/src/main/java/io/metersphere/api/jmeter/FixedCapacityUtils.java @@ -45,7 +45,7 @@ public class FixedCapacityUtils { Long endTime = System.currentTimeMillis(); Long finalStartTime = startTime; String logMessage = FixedCapacityUtils.fixedCapacityCache.entrySet().stream() - .filter(map -> map.getKey() > finalStartTime && map.getKey() < endTime) + .filter(map -> map.getKey() > finalStartTime && map.getKey() <= endTime) .map(map -> map.getValue()).collect(Collectors.joining()); return logMessage; } catch (Exception e) {