Fix HyperLogLog test script for new redis-rb API.
This commit is contained in:
parent
38bc8ea531
commit
87cc94864c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user