From 47dea01c853e075ee591ded515eecffefd535425 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 16 Dec 2016 10:56:40 +0100 Subject: [PATCH] Fix HLL gnuplot graph generator script for new redis-rb versions. The PFADD now takes an array and has mandatory two arguments. --- utils/hyperloglog/hll-gnuplot-graph.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/hyperloglog/hll-gnuplot-graph.rb b/utils/hyperloglog/hll-gnuplot-graph.rb index 745baddcfe30..6c7596d17c87 100644 --- a/utils/hyperloglog/hll-gnuplot-graph.rb +++ b/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