summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-12-16 10:56:40 +0100
committerantirez <antirez@gmail.com>2016-12-16 11:07:30 +0100
commit47dea01c853e075ee591ded515eecffefd535425 (patch)
tree493bd5aae3be13c1f79fd4206f4fbbd67b02030d /utils
parentc55e3fbae5273d8a6fd5582e44d8745b2b81b7df (diff)
downloadredis-47dea01c853e075ee591ded515eecffefd535425.tar.gz
Fix HLL gnuplot graph generator script for new redis-rb versions.
The PFADD now takes an array and has mandatory two arguments.
Diffstat (limited to 'utils')
-rw-r--r--utils/hyperloglog/hll-gnuplot-graph.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hyperloglog/hll-gnuplot-graph.rb b/utils/hyperloglog/hll-gnuplot-graph.rb
index 745baddcf..6c7596d17 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