Kouhei Sutou
null+****@clear*****
Wed Mar 8 11:29:37 JST 2017
Kouhei Sutou 2017-03-08 11:29:37 +0900 (Wed, 08 Mar 2017) New Revision: addfe5003bf3e95a64c92bc42bccfb3e10a02e7a https://github.com/ranguba/groonga-client-model/commit/addfe5003bf3e95a64c92bc42bccfb3e10a02e7a Message: log: initialize runtime lazy Modified files: lib/groonga_client_model/log_subscriber.rb Modified: lib/groonga_client_model/log_subscriber.rb (+1 -3) =================================================================== --- lib/groonga_client_model/log_subscriber.rb 2017-03-08 08:57:03 +0900 (58dc492) +++ lib/groonga_client_model/log_subscriber.rb 2017-03-08 11:29:37 +0900 (39a0546) @@ -43,10 +43,8 @@ module GroongaClientModel end end - reset_runtime - def groonga(event) - self.class.runtime += event.duration + self.class.runtime = (self.class.runtime || 0) + event.duration debug do command = event.payload[:command] -------------- next part -------------- HTML����������������������������...Download