From a7ecfb68c18dd15c4d6b93e2ff6a5c7d8616240e Mon Sep 17 00:00:00 2001 From: 抓蛙师 <770492966@qq.com> Date: 星期一, 13 九月 2021 13:57:03 +0800 Subject: [PATCH] 字典类型 数据解析状态对应字典调整 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java index 48e95dd..66749ef 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java @@ -40,8 +40,8 @@ commandStats.stringPropertyNames().forEach(key -> { Map<String, String> data = new HashMap<>(2); String property = commandStats.getProperty(key); - data.put("name", StringUtils.removePrefix(key, "cmdstat_")); - data.put("value", StringUtils.subBetween(property, "calls=", ",usec")); + data.put("name", StringUtils.removeStart(key, "cmdstat_")); + data.put("value", StringUtils.substringBetween(property, "calls=", ",usec")); pieList.add(data); }); result.put("commandStats", pieList); -- Gitblit v1.9.3