Authored by skinny.wu

redis monitor 修改

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