lib/reptile/heartbeat.rb in reptile-0.1.0 vs lib/reptile/heartbeat.rb in reptile-0.1.1

- old
+ new

@@ -54,16 +54,12 @@ if heartbeat.nil? Log.info "No heartbeats found on #{name} at #{Time.now}" return nil; end - # Not sure why we have both, (one is easier to read?). - # Use one or the other to calculate delay... delay = (Time.now - Time.at(heartbeat.unix_time)).round - #delay = (Time.now - heartbeat.db_time) - Log.debug "Read heartbeat from #{name} at #{Time.at(heartbeat.unix_time)}." - Log.info "The delay is #{strfdelay(delay)}" + Log.info "The slave delay for '#{name}' is #{strfdelay(delay)}" delay end private \ No newline at end of file