mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 04:08:43 +08:00 
			
		
		
		
	修复 Redis 监控,消耗 CPU 秒数超过 Integer 范围
This commit is contained in:
		@@ -37,7 +37,7 @@ public class InfRedisMonitorRespVO {
 | 
			
		||||
        private Integer calls;
 | 
			
		||||
 | 
			
		||||
        @ApiModelProperty(value = "消耗 CPU 秒数", required = true, example = "666")
 | 
			
		||||
        private Integer usec;
 | 
			
		||||
        private Long usec;
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -23,7 +23,7 @@ public interface RedisConvert {
 | 
			
		||||
            respVO.getCommandStats().add(InfRedisMonitorRespVO.CommandStat.builder()
 | 
			
		||||
                    .command(StrUtil.subAfter((String) key, "cmdstat_", false))
 | 
			
		||||
                    .calls(Integer.valueOf(StrUtil.subBetween((String) value, "calls=", ",")))
 | 
			
		||||
                    .usec(Integer.valueOf(StrUtil.subBetween((String) value, "usec=", ",")))
 | 
			
		||||
                    .usec(Long.valueOf(StrUtil.subBetween((String) value, "usec=", ",")))
 | 
			
		||||
                    .build());
 | 
			
		||||
        });
 | 
			
		||||
        return respVO;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user