From 6f2183769abf4275b90bcb3a3677f1756de64550 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sat, 13 May 2023 14:27:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=A5=E5=91=8Alabel=E4=B8=AD=E6=9C=89?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E5=86=85=E5=AE=B9=E5=AF=BC=E8=87=B4=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/service/PerformanceReportService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java index 033bc150fa..c9e44b8a18 100644 --- a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java +++ b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java @@ -241,7 +241,7 @@ public class PerformanceReportService { List jmxContent = getJmxContent(id); String jmx = jmxContent.get(0).getJmx(); // 按照JMX顺序重新排序 - statistics.sort(Comparator.comparingInt(a -> jmx.indexOf(a.getLabel()))); + statistics.sort(Comparator.comparingInt(a -> jmx.indexOf("\"" + a.getLabel() + "\""))); // 把 total 放到最后 List total = statistics.stream() .filter(r -> StringUtils.equalsAnyIgnoreCase(r.getLabel(), "Total"))