Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0ffeadd2
Commit
0ffeadd2
authored
Jan 24, 2011
by
antirez
Browse files
portability fix in redis benchmark, using zu format specified with size_t instead of lu
parent
9738e587
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
0ffeadd2
...
...
@@ -143,7 +143,7 @@ static void randomizeClientKey(client c) {
for
(
i
=
0
;
i
<
c
->
randlen
;
i
++
)
{
r
=
random
()
%
config
.
randomkeys_keyspacelen
;
snprintf
(
buf
,
sizeof
(
buf
),
"%012
l
u"
,
r
);
snprintf
(
buf
,
sizeof
(
buf
),
"%012
z
u"
,
r
);
memcpy
(
c
->
randptr
[
i
],
buf
,
12
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment