Commit 87cc9486 authored by antirez's avatar antirez
Browse files

Fix HyperLogLog test script for new redis-rb API.

parent 38bc8ea5
...@@ -18,7 +18,7 @@ while true do ...@@ -18,7 +18,7 @@ while true do
elements << ele elements << ele
i += 1 i += 1
} }
r.pfadd('hll',*elements) r.pfadd('hll',elements)
} }
approx = r.pfcount('hll') approx = r.pfcount('hll')
abs_err = (approx-i).abs abs_err = (approx-i).abs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment