Skip to content

Commit

Permalink
fix report
Browse files Browse the repository at this point in the history
  • Loading branch information
thewoolleyman committed Oct 28, 2008
1 parent 223d09b commit dc070f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_timestamp.rb
Expand Up @@ -9,7 +9,7 @@ def build_report
output = "Path: #{path}, Threshold: #{threshold} minutes, Path Timestamp: #{timestamp}, Current Time: #{current_time}, Difference: #{difference}"
report(:difference => difference, :threshold => threshold)
if difference > threshold
alert(:subject => "File #{path} was older than #{threshold} minutes", :body => output)
alert(:subject => "File #{path} was #{difference} minutes old, which is over the threshold of #{threshold} minutes", :body => output)
end
return difference
rescue Exception => e
Expand Down

0 comments on commit dc070f7

Please sign in to comment.