lib/agent/server/worker/am_worker.rb in apminsight-1.8.6 vs lib/agent/server/worker/am_worker.rb in apminsight-1.8.7
- old
+ new
@@ -21,13 +21,13 @@
@obj.log.info "start worker thread for - #{Process.pid} :: #{@status} "
#@obj.log.info "Starting APMWorker Thread #{Process.pid} "
@apm = Thread.new do
@status = 'working'
while !@obj.shutdown do
+ sleep (@obj.config.connect_interval).to_i
checkforagentstatus
updateConfig
dc
- sleep (@obj.config.connect_interval).to_i
end#w
@status= "end"
@obj.log.debug "Worker thread ends"
end
end