diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java index 0d3f02a0b6..72a4da70a1 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java @@ -67,7 +67,7 @@ public class ApiDefinitionExecResultService { for (RequestResult item : requestResults) { item.setEndTime(System.currentTimeMillis()); - if (item.getResponseResult() != null) { + if (item.getResponseResult() != null && item.getResponseResult().getResponseTime() <= 0) { item.getResponseResult().setResponseTime((item.getEndTime() - item.getStartTime())); } if (!StringUtils.startsWithAny(item.getName(), "PRE_PROCESSOR_ENV_", "POST_PROCESSOR_ENV_")) {