mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-10-31 10:37:41 +08:00 
			
		
		
		
	!239 fix: redis7.0 监控查询calls数值过大转Intger异常
Merge pull request !239 from lanyue52011/feature/visual
This commit is contained in:
		| @ -34,7 +34,7 @@ public class RedisMonitorRespVO { | |||||||
|         private String command; |         private String command; | ||||||
|  |  | ||||||
|         @ApiModelProperty(value = "调用次数", required = true, example = "1024") |         @ApiModelProperty(value = "调用次数", required = true, example = "1024") | ||||||
|         private Integer calls; |         private Long calls; | ||||||
|  |  | ||||||
|         @ApiModelProperty(value = "消耗 CPU 秒数", required = true, example = "666") |         @ApiModelProperty(value = "消耗 CPU 秒数", required = true, example = "666") | ||||||
|         private Long usec; |         private Long usec; | ||||||
|  | |||||||
| @ -22,7 +22,7 @@ public interface RedisConvert { | |||||||
|         commandStats.forEach((key, value) -> { |         commandStats.forEach((key, value) -> { | ||||||
|             respVO.getCommandStats().add(RedisMonitorRespVO.CommandStat.builder() |             respVO.getCommandStats().add(RedisMonitorRespVO.CommandStat.builder() | ||||||
|                     .command(StrUtil.subAfter((String) key, "cmdstat_", false)) |                     .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=", ","))) |                     .usec(Long.valueOf(StrUtil.subBetween((String) value, "usec=", ","))) | ||||||
|                     .build()); |                     .build()); | ||||||
|         }); |         }); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 芋道源码
					芋道源码