X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/17b24ff30d5c84c489a9793e35b7497519a878b9..45b0f6fb14f2a0d5bca0b4e32cb44a31e29aa921:/src/redis.c diff --git a/src/redis.c b/src/redis.c index b19ee891..96786df9 100644 --- a/src/redis.c +++ b/src/redis.c @@ -192,7 +192,8 @@ struct redisCommand redisCommandTable[] = { {"restore",restoreCommand,4,0,NULL,0,0,0,0,0}, {"migrate",migrateCommand,6,0,NULL,0,0,0,0,0}, {"dump",dumpCommand,2,0,NULL,0,0,0,0,0}, - {"object",objectCommand,-2,0,NULL,0,0,0,0,0} + {"object",objectCommand,-2,0,NULL,0,0,0,0,0}, + {"client",clientCommand,-2,0,NULL,0,0,0,0,0} }; /*============================ Utility functions ============================ */ @@ -1316,7 +1317,6 @@ sds genRedisInfoString(char *section) { "used_memory_peak:%zu\r\n" "used_memory_peak_human:%s\r\n" "mem_fragmentation_ratio:%.2f\r\n" - "peak_mem_fragmentation_ratio:%.2f\r\n" "use_tcmalloc:%d\r\n", zmalloc_used_memory(), hmem, @@ -1324,7 +1324,6 @@ sds genRedisInfoString(char *section) { server.stat_peak_memory, peak_hmem, zmalloc_get_fragmentation_ratio(), - (float)zmalloc_get_rss()/server.stat_peak_memory, #ifdef USE_TCMALLOC 1 #else