Commit 5386f72d authored by antirez's avatar antirez
Browse files

redis-cli --bigkeys output modified to be simpler to read..

parent f26761aa
...@@ -1030,7 +1030,7 @@ static void findBigKeys(void) { ...@@ -1030,7 +1030,7 @@ static void findBigKeys(void) {
reply3 = redisCommand(context,"%s %s", sizecmd, reply1->str); reply3 = redisCommand(context,"%s %s", sizecmd, reply1->str);
if (reply3 && reply3->type == REDIS_REPLY_INTEGER) { if (reply3 && reply3->type == REDIS_REPLY_INTEGER) {
if (biggest[type] < reply3->integer) { if (biggest[type] < reply3->integer) {
printf("Biggest %s so far: %s, size: %llu\n", printf("[%6s] %s | biggest so far with size %llu\n",
typename[type], reply1->str, typename[type], reply1->str,
(unsigned long long) reply3->integer); (unsigned long long) reply3->integer);
biggest[type] = reply3->integer; biggest[type] = reply3->integer;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment