Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b612affb
Commit
b612affb
authored
Apr 03, 2014
by
antirez
Browse files
Make hll-gnuplot-graph.rb callable from cli.
parent
ce637b2f
Changes
1
Show whitespace changes
Inline
Side-by-side
utils/hyperloglog/hll-gnuplot-graph.rb
View file @
b612affb
...
@@ -81,7 +81,8 @@ def filter_samples(numsets,max,step,filter)
...
@@ -81,7 +81,8 @@ def filter_samples(numsets,max,step,filter)
}
}
end
end
filter_samples
(
100
,
100000
,
1000
,
:absavg
)
if
ARGV
.
length
!=
4
#filter_samples(100,1000,10,:all)
puts
"Usage: hll-gnuplot-graph <samples> <max> <step> (max|avg|absavg|all)"
#filter_samples(100,10000,1000,:max)
exit
1
#filter_samples(100,10000,1000,:avg)
end
filter_samples
(
ARGV
[
0
].
to_i
,
ARGV
[
1
].
to_i
,
ARGV
[
2
].
to_i
,
ARGV
[
3
].
to_sym
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment