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