summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-12-19 12:42:44 +0000
committerSteve Kemp <steve@steve.org.uk>2012-12-19 12:42:44 +0000
commit8855884c00c88712152cb6d81c1a92def75755b9 (patch)
tree2e59736c15804c49e79aeca720fcb0ee92039d4a /lib/custodian/alerts
parent1c76e0f87c09ee1c4176ce74a5c1d38ad965eeed (diff)
Ensure that our notification periods are integers
Diffstat (limited to 'lib/custodian/alerts')
-rw-r--r--lib/custodian/alerts/mauve.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/custodian/alerts/mauve.rb b/lib/custodian/alerts/mauve.rb
index 7f06dfd..7fe28bc 100644
--- a/lib/custodian/alerts/mauve.rb
+++ b/lib/custodian/alerts/mauve.rb
@@ -96,14 +96,14 @@ module Custodian
#
# Lookup the start of the day.
#
- day_start = @settings.key( "day_start" ) || 10
- day_end = @settings.key( "day_end" ) || 18
+ day_start = @settings.key( "day_start" ).to_i || 10
+ day_end = @settings.key( "day_end" ).to_i || 18
#
# In hour suppress
#
- working_suppress = @settings.key( "working_suppress" ) || 4
- oncall_suppress = @settings.key( "oncall_suppress" ) || 10
+ working_suppress = @settings.key( "working_suppress" ).to_i || 4
+ oncall_suppress = @settings.key( "oncall_suppress" ).to_i || 10
#
# If we're Monday-Friday, between the start & end time, then