summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-03-31 11:57:47 +0200
committerantirez <antirez@gmail.com>2014-03-31 11:58:13 +0200
commit69a93194fd4a8c448cf9e9990ab9991fa9573a55 (patch)
tree5ad7ae04d111e481f7062a99e193cbb0d725a0ff /utils
parenta8fb1a328db57e98893c91ffddc138b61d153129 (diff)
downloadredis-69a93194fd4a8c448cf9e9990ab9991fa9573a55.tar.gz
hll-gnuplot-graph.rb: Use |error| when filter is :max
Diffstat (limited to 'utils')
-rw-r--r--utils/hyperloglog/hll-gnuplot-graph.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/hyperloglog/hll-gnuplot-graph.rb b/utils/hyperloglog/hll-gnuplot-graph.rb
index 1cccbf4be..468eb99cf 100644
--- a/utils/hyperloglog/hll-gnuplot-graph.rb
+++ b/utils/hyperloglog/hll-gnuplot-graph.rb
@@ -47,6 +47,7 @@ def filter_samples(numsets,filter)
dataset[i] = run_experiment(r,i,100000,1)
}
dataset[0].each_with_index{|ele,index|
+ ele[1] = ele[1].abs if filter == :max
card,err=ele
if filter == :max
(1...numsets).each{|i|