Navigation Menu

Skip to content

Commit

Permalink
analyzer: fix a bug that options aren't applied when --stream is given
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 17, 2015
1 parent a3246a6 commit 53a8c0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/groonga/query-log/analyzer.rb
Expand Up @@ -69,7 +69,9 @@ def run(arguments)
statistics = SizedStatistics.new
statistics.apply_options(@options)
if stream
streamer = Streamer.new(create_reporter(statistics))
reporter = create_reporter(statistics)
reporter.apply_options(@options)
streamer = Streamer.new(reporter)
streamer.start
process_statistic = lambda do |statistic|
streamer << statistic
Expand Down

0 comments on commit 53a8c0e

Please sign in to comment.