Authored by skinny.wu

redis monitor 修改

... ... @@ -133,7 +133,7 @@ public class RedisMonitorHandleServiceImpl implements IRedisMonitorHandleService
if(null != response){
int total_connections=(Integer)response.get("total_connections");
int curr_connections=(Integer)response.get("curr_connections");
upTime = (long)response.get("uptime");
upTime = Long.valueOf(response.get("uptime").toString());
if(total_connections>0){
//总连接数
paramMonitor.append("总连接数:"+total_connections+";");
... ... @@ -153,7 +153,7 @@ public class RedisMonitorHandleServiceImpl implements IRedisMonitorHandleService
JSONObject ipObj= alpha.getJSONObject(key);
// 取出requests的long值
requestCount += (long)ipObj.get("requests");
requestCount += Long.valueOf(ipObj.get("requests").toString());
redisCount ++;
}
}
... ...