Permalink
Browse files

Fix HLL gnuplot graph generator script for new redis-rb versions.

The PFADD now takes an array and has mandatory two arguments.
1 parent c55e3fb commit 47dea01c853e075ee591ded515eecffefd535425 @antirez committed Dec 16, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 utils/hyperloglog/hll-gnuplot-graph.rb
@@ -30,7 +30,7 @@ def run_experiment(r,seed,max,step)
elements << ele
i += 1
}
- r.pfadd('hll',*elements)
+ r.pfadd('hll',elements)
approx = r.pfcount('hll')
err = approx-i
rel_err = 100.to_f*err/i

0 comments on commit 47dea01

Please sign in to comment.