Kouhei Sutou
null+****@clear*****
Thu Mar 8 11:48:09 JST 2018
Kouhei Sutou 2018-03-08 11:48:09 +0900 (Thu, 08 Mar 2018) New Revision: ca1c6d46e533d55c035727eccf4c279a81e7fc71 https://github.com/groonga/groonga-query-log/commit/ca1c6d46e533d55c035727eccf4c279a81e7fc71 Message: Use Integer with base Modified files: lib/groonga-query-log/parser.rb Modified: lib/groonga-query-log/parser.rb (+7 -7) =================================================================== --- lib/groonga-query-log/parser.rb 2018-02-26 10:14:43 +0900 (ff22b06) +++ lib/groonga-query-log/parser.rb 2018-03-08 11:48:09 +0900 (ec3dab7) @@ -66,13 +66,13 @@ module GroongaQueryLog match_data = PATTERN.match(line) next if match_data.nil? - year = match_data[:year].to_i - month = match_data[:month].to_i - day = match_data[:day].to_i - hour = match_data[:hour].to_i - minute = match_data[:minute].to_i - second = match_data[:second].to_i - microsecond = match_data[:microsecond].to_i + year = Integer(match_data[:year], 10) + month = Integer(match_data[:month], 10) + day = Integer(match_data[:day], 10) + hour = Integer(match_data[:hour], 10) + minute = Integer(match_data[:minute], 10) + second = Integer(match_data[:second], 10) + microsecond = Integer(match_data[:microsecond], 10) context_id = match_data[:context_id] type = match_data[:type] rest = match_data.post_match.strip -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180308/8e8bb873/attachment-0001.htm