From 69a93194fd4a8c448cf9e9990ab9991fa9573a55 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 31 Mar 2014 11:57:47 +0200 Subject: [PATCH] hll-gnuplot-graph.rb: Use |error| when filter is :max --- utils/hyperloglog/hll-gnuplot-graph.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/hyperloglog/hll-gnuplot-graph.rb b/utils/hyperloglog/hll-gnuplot-graph.rb index 1cccbf4b..468eb99c 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|