summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-07-18 10:53:02 +0200
committerantirez <antirez@gmail.com>2016-07-18 10:53:02 +0200
commitb8450d7cc515a55f0e1278f70806c12cb6d9fa58 (patch)
tree56f6a66abcd99966a720d661bde18ae38bf9d3ab
parent5d07984c5d48d6253ea5884d69da3f06cdc90f1b (diff)
downloadredis-b8450d7cc515a55f0e1278f70806c12cb6d9fa58.tar.gz
redis-cli LRU test mode: remove newline from key names.
-rw-r--r--src/redis-cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index 6aacecc77..7010e5e5a 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -2402,7 +2402,7 @@ long long powerLawRand(long long min, long long max, double alpha) {
/* Generates a key name among a set of lru_test_sample_size keys, using
* an 80-20 distribution. */
void LRUTestGenKey(char *buf, size_t buflen) {
- snprintf(buf, buflen, "lru:%lld\n",
+ snprintf(buf, buflen, "lru:%lld",
powerLawRand(1, config.lru_test_sample_size, 6.2));
}