抓蛙师
2021-09-13 a7ecfb68c18dd15c4d6b93e2ff6a5c7d8616240e
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);