Kouhei Sutou
null+****@clear*****
Thu Nov 9 22:18:16 JST 2017
Kouhei Sutou 2017-11-09 22:18:16 +0900 (Thu, 09 Nov 2017) New Revision: b24bd03380de8d6d6fd73e9c27a1d6b6b2d9c374 https://github.com/ranguba/groonga-client/commit/b24bd03380de8d6d6fd73e9c27a1d6b6b2d9c374 Message: groonga-client-index-check: stop to use floating point number It may have error. Modified files: lib/groonga/client/command-line/groonga-client-index-check.rb Modified: lib/groonga/client/command-line/groonga-client-index-check.rb (+6 -1) =================================================================== --- lib/groonga/client/command-line/groonga-client-index-check.rb 2017-11-09 16:20:08 +0900 (0d276f5) +++ lib/groonga/client/command-line/groonga-client-index-check.rb 2017-11-09 22:18:16 +0900 (fe7f5d7) @@ -136,7 +136,12 @@ module Groonga when String value = Groonga::Client::ScriptSyntax.format_string(token) when Time - value = token.to_f + if token.usec.zero? + value = token.to_i + else + value = token.strftime("%Y-%m-%d %H:%M:%S.%6N") + value = Groonga::Client::ScriptSyntax.format_string(value) + end else value = token end -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171109/59435912/attachment.htm