Skip to content

Commit

Permalink
Make hll-gnuplot-graph.rb callable from cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Apr 3, 2014
1 parent ce637b2 commit b612aff
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions utils/hyperloglog/hll-gnuplot-graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def filter_samples(numsets,max,step,filter)
}
end

filter_samples(100,100000,1000,:absavg)
#filter_samples(100,1000,10,:all)
#filter_samples(100,10000,1000,:max)
#filter_samples(100,10000,1000,:avg)
if ARGV.length != 4
puts "Usage: hll-gnuplot-graph <samples> <max> <step> (max|avg|absavg|all)"
exit 1
end
filter_samples(ARGV[0].to_i,ARGV[1].to_i,ARGV[2].to_i,ARGV[3].to_sym)

0 comments on commit b612aff

Please sign in to comment.