疯狂的狮子li
2021-08-05 4e54190e3a398ba911a2990577dd2fc74f614ce3
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);