Authored by skinny.wu

修改Redis info 取key-value key写错错误

@@ -241,8 +241,8 @@ public class RedisMonitorHandleServiceImpl implements IRedisMonitorHandleService @@ -241,8 +241,8 @@ public class RedisMonitorHandleServiceImpl implements IRedisMonitorHandleService
241 paramMonitor.append(result.get("instantaneous_ops_per_sec")+","); 241 paramMonitor.append(result.get("instantaneous_ops_per_sec")+",");
242 242
243 //计算命中率hitRate 243 //计算命中率hitRate
244 - long keyspaceHits = Long.valueOf(result.get("keyspace_hits ").toString());  
245 - long keyspaceMisses = Long.valueOf(result.get("keyspace_misses ").toString()); 244 + long keyspaceHits = Long.valueOf(result.get("keyspace_hits").toString());
  245 + long keyspaceMisses = Long.valueOf(result.get("keyspace_misses").toString());
246 double hitRate = keyspaceHits * 1.0 / (keyspaceMisses + keyspaceHits); 246 double hitRate = keyspaceHits * 1.0 / (keyspaceMisses + keyspaceHits);
247 paramMonitor.append(hitRate + ","); 247 paramMonitor.append(hitRate + ",");
248 248