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

This commit is contained in:
antirez 2012-04-18 20:53:37 +02:00
parent f26761aa10
commit 5386f72d00

View File

@ -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;