diff options
author | antirez <antirez@gmail.com> | 2014-04-03 16:38:11 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-04-03 16:38:11 +0200 |
commit | b612affba305fd34662fc4afae5663c764915c12 (patch) | |
tree | 4012815143de95d69a2fb45b265217dcd13dc4e6 /utils | |
parent | ce637b2fef04d4f073e5e045410f3527b65001ca (diff) | |
download | redis-b612affba305fd34662fc4afae5663c764915c12.tar.gz |
Make hll-gnuplot-graph.rb callable from cli.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/hyperloglog/hll-gnuplot-graph.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/hyperloglog/hll-gnuplot-graph.rb b/utils/hyperloglog/hll-gnuplot-graph.rb index 75b57d0c3..745baddcf 100644 --- a/utils/hyperloglog/hll-gnuplot-graph.rb +++ b/utils/hyperloglog/hll-gnuplot-graph.rb @@ -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) |