From eb037c963c34d061f9808ae4eb5682dbe2477ecd Mon Sep 17 00:00:00 2001 From: lanyue52011 Date: Fri, 29 Jul 2022 16:48:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20redis7.0=20=E7=9B=91=E6=8E=A7=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2calls=E6=95=B0=E5=80=BC=E8=BF=87=E5=A4=A7=E8=BD=ACIntg?= =?UTF-8?q?er=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infra/controller/admin/redis/vo/RedisMonitorRespVO.java | 2 +- .../iocoder/yudao/module/infra/convert/redis/RedisConvert.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/RedisMonitorRespVO.java b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/RedisMonitorRespVO.java index 703a697dc..73b0cfc9f 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/RedisMonitorRespVO.java +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/vo/RedisMonitorRespVO.java @@ -34,7 +34,7 @@ public class RedisMonitorRespVO { private String command; @ApiModelProperty(value = "调用次数", required = true, example = "1024") - private Integer calls; + private Long calls; @ApiModelProperty(value = "消耗 CPU 秒数", required = true, example = "666") private Long usec; diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/convert/redis/RedisConvert.java b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/convert/redis/RedisConvert.java index 6a1ded7d2..af31f7e9d 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/convert/redis/RedisConvert.java +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/convert/redis/RedisConvert.java @@ -22,7 +22,7 @@ public interface RedisConvert { commandStats.forEach((key, value) -> { respVO.getCommandStats().add(RedisMonitorRespVO.CommandStat.builder() .command(StrUtil.subAfter((String) key, "cmdstat_", false)) - .calls(Integer.valueOf(StrUtil.subBetween((String) value, "calls=", ","))) + .calls(Long.valueOf(StrUtil.subBetween((String) value, "calls=", ","))) .usec(Long.valueOf(StrUtil.subBetween((String) value, "usec=", ","))) .build()); });