lib/flapjack/gateways/email/alert.text.erb in flapjack-0.7.29 vs lib/flapjack/gateways/email/alert.text.erb in flapjack-0.7.30
- old
+ new
@@ -11,10 +11,10 @@
<% end -%>
<% if @alert.time -%>
Time: <%= Time.at(@alert.time.to_i).to_s %>
<% end -%>
<% if @alert.state_duration && @alert.state_duration > 40 -%>
-Duration: <%= ChronicDuration.output(@alert.state_duration) %>
+Duration: <%= ChronicDuration.output(@alert.state_duration, :keep_zero => true) || '0 secs' %>
<% end -%>
<% if @alert.last_state -%>
Previous State: <%= @alert.last_state_title_case %>
<% end -%>
<% if @alert.last_summary -%>