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
47dea01c
Commit
47dea01c
authored
Dec 16, 2016
by
antirez
Browse files
Fix HLL gnuplot graph generator script for new redis-rb versions.
The PFADD now takes an array and has mandatory two arguments.
parent
c55e3fba
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/hyperloglog/hll-gnuplot-graph.rb
View file @
47dea01c
...
@@ -30,7 +30,7 @@ def run_experiment(r,seed,max,step)
...
@@ -30,7 +30,7 @@ def run_experiment(r,seed,max,step)
elements
<<
ele
elements
<<
ele
i
+=
1
i
+=
1
}
}
r
.
pfadd
(
'hll'
,
*
elements
)
r
.
pfadd
(
'hll'
,
elements
)
approx
=
r
.
pfcount
(
'hll'
)
approx
=
r
.
pfcount
(
'hll'
)
err
=
approx
-
i
err
=
approx
-
i
rel_err
=
100
.
to_f
*
err
/
i
rel_err
=
100
.
to_f
*
err
/
i
...
...
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