lib/flapjack/gateways/email/rollup.text.erb in flapjack-0.7.29 vs lib/flapjack/gateways/email/rollup.text.erb in flapjack-0.7.30

- old
+ new

@@ -3,10 +3,10 @@ You have <%= @alert.rollup_alerts.length %> alerting check<%= @alert.rollup_alerts.length == 1 ? '' : 's' %> as follows: <% @alert.rollup_alerts.sort_by {|entity_check, details| details['duration'] }.each do |rollup_alert| -%> <% r_entity, r_check = rollup_alert[0].split(':', 2) -%> <% state = rollup_alert[1]['state'] -%> -<% duration = ChronicDuration.output(rollup_alert[1]['duration'] ) -%> +<% duration = (ChronicDuration.output(rollup_alert[1]['duration'], :keep_zero => true) || '0 secs') -%> * <%= r_check %> on <%= r_entity %> is <%= ['ok'].include?(state) ? state.upcase : state.titleize %> (<%= duration %>) <% end -%> <% if @alert.rollup == 'recovery' -%> As your email summary threshold is <%= @alert.rollup_threshold %>, we're taking your email alerts out of summary mode now. You'll now be emailed individually for each alerting check.