mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
portability fix in redis benchmark, using zu format specified with size_t instead of lu
This commit is contained in:
parent
0d808ef275
commit
9b45592c69
@ -143,7 +143,7 @@ static void randomizeClientKey(client c) {
|
|||||||
|
|
||||||
for (i = 0; i < c->randlen; i++) {
|
for (i = 0; i < c->randlen; i++) {
|
||||||
r = random() % config.randomkeys_keyspacelen;
|
r = random() % config.randomkeys_keyspacelen;
|
||||||
snprintf(buf,sizeof(buf),"%012lu",r);
|
snprintf(buf,sizeof(buf),"%012zu",r);
|
||||||
memcpy(c->randptr[i],buf,12);
|
memcpy(c->randptr[i],buf,12);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user