Kouhei Sutou
null+****@clear*****
Wed May 31 15:51:36 JST 2017
Kouhei Sutou 2017-05-31 15:51:36 +0900 (Wed, 31 May 2017) New Revision: 47ea5b9778afbd3ba3c213b6af412aa6af753aa0 https://github.com/groonga/groonga-query-log/commit/47ea5b9778afbd3ba3c213b6af412aa6af753aa0 Message: Simplify Modified files: lib/groonga/query-log/parser.rb Modified: lib/groonga/query-log/parser.rb (+2 -5) =================================================================== --- lib/groonga/query-log/parser.rb 2017-05-31 15:44:24 +0900 (849193d) +++ lib/groonga/query-log/parser.rb 2017-05-31 15:51:36 +0900 (27a1383) @@ -71,11 +71,8 @@ module Groonga when ":" return unless /\A(\d+) (.+)\((\d+)\)(\[.+\])?/ =~ rest elapsed = $1 - if $4 - name = $2 + $4 - else - name = $2 - end + name = $2 + name += $4 if $4 n_records = $3.to_i statistic = @parsing_statistics[context_id] return if statistic.nil? -------------- next part -------------- HTML����������������������������...Download