bin/hbc in heartbeat-client-0.4.3 vs bin/hbc in heartbeat-client-0.4.4
- old
+ new
@@ -33,15 +33,15 @@
if ARGV and ARGV.size == 1
Daemons.run_proc('heartbeat-client.rb', :dir => File.join('/tmp'), :monitor => true,
:backtrace => true, :monitor => true) do
Heartbeat.log = Logger.new('/tmp/heartbeat.log')
- count = 0
+ count = 1
loop do
begin
- Heartbeat.create(@config, version, (count == 2))
count += 1
- count = 0 if count == 2
+ Heartbeat.create(@config, version, (count == 2))
+ count = 0 if count == 3
rescue => e
puts e.message
end
GC.start
sleep(30)