lib/asir/transport/beanstalk.rb in asir_beanstalk-1.2.6 vs lib/asir/transport/beanstalk.rb in asir_beanstalk-1.2.7

- old
+ new

@@ -129,16 +129,17 @@ end # !SLIDE # Beanstalk protocol support - def status - { - :beanstalkd => { - :stats => stats, - :stats_tube => tube && stats_tube, - } + def conduit_status + t0 = Time.now + x = { + :stats => stats, + :stats_tube => tube && stats_tube, } + x[:response_time] = Time.now - t0 + { :beanstalkd => x } end def stats _beanstalk_stats_yaml! "stats\r\n" end