From c76b9b644c11f8b7284755664670d9baa64f1907 Mon Sep 17 00:00:00 2001 From: jybaek Date: Thu, 13 Oct 2016 15:17:07 +0900 Subject: [PATCH 1/2] Remove Duplicate Processing --- src/redis-cli.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/redis-cli.c b/src/redis-cli.c index 054c2fc7..7d34e7f9 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -628,7 +628,6 @@ sds sdscatcolor(sds o, char *s, size_t len, char *color) { int bold = strstr(color,"bold") != NULL; int ccode = 37; /* Defaults to white. */ if (strstr(color,"red")) ccode = 31; - else if (strstr(color,"red")) ccode = 31; else if (strstr(color,"green")) ccode = 32; else if (strstr(color,"yellow")) ccode = 33; else if (strstr(color,"blue")) ccode = 34; From 81fe7a4733ff6c1f7fbfaeb190c963d2d2826280 Mon Sep 17 00:00:00 2001 From: Mota Date: Sat, 28 Jan 2017 11:20:23 +0800 Subject: [PATCH 2/2] redis-benchmark: default value size usage update. default size of SET/GET value in usage should be 3 bytes as in main code. --- src/redis-benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index dec8ecb5..928ec31e 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -572,8 +572,8 @@ usage: " -a Password for Redis Auth\n" " -c Number of parallel connections (default 50)\n" " -n Total number of requests (default 100000)\n" -" -d Data size of SET/GET value in bytes (default 2)\n" -" --dbnum SELECT the specified db number (default 0)\n" +" -d Data size of SET/GET value in bytes (default 3)\n" +" --dbnum SELECT the specified db number (default 0)\n" " -k 1=keep alive 0=reconnect (default 1)\n" " -r Use random keys for SET/GET/INCR, random values for SADD\n" " Using this option the benchmark will expand the string __rand_int__\n"