Kentaro Hayashi
null+****@clear*****
Wed May 31 15:24:32 JST 2017
Kentaro Hayashi 2017-05-31 15:24:32 +0900 (Wed, 31 May 2017) New Revision: 51389c50b24479414a065a3974d43d1ba72265cb https://github.com/groonga/groonga-query-log/commit/51389c50b24479414a065a3974d43d1ba72265cb Merged d947aba: Merge pull request #24 from kenhys/fix-condition Message: Use more readable condition Modified files: lib/groonga/query-log/parser.rb Modified: lib/groonga/query-log/parser.rb (+3 -3) =================================================================== --- lib/groonga/query-log/parser.rb 2017-05-31 14:57:45 +0900 (74de193) +++ lib/groonga/query-log/parser.rb 2017-05-31 15:24:32 +0900 (645fee2) @@ -70,10 +70,10 @@ module Groonga when ":" return unless /\A(\d+) (.+)\((\d+)\)(\[.+\])?/ =~ rest elapsed = $1 - unless $4 - name = $2 - else + if $4 name = $2 + $4 + else + name = $2 end n_records = $3.to_i statistic = @parsing_statistics[context_id] -------------- next part -------------- HTML����������������������������... 다운로드