diff options
author | Steve Kemp <steve@steve.org.uk> | 2013-05-14 14:13:23 +0100 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2013-05-14 14:13:23 +0100 |
commit | 42692b16efed467a149152077b9856431107a776 (patch) | |
tree | 3c5b43372945c3ab8f9753690febda2052b1597a /lib/custodian/settings.rb | |
parent | 62d2d9d457cffaac22b30b86c4ebe30c6da8dc67 (diff) |
Ensure repeat_count and sleep values are integers.
Diffstat (limited to 'lib/custodian/settings.rb')
-rw-r--r-- | lib/custodian/settings.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/settings.rb b/lib/custodian/settings.rb index 34a54a6..310de02 100644 --- a/lib/custodian/settings.rb +++ b/lib/custodian/settings.rb @@ -97,7 +97,7 @@ module Custodian def retries _load() unless( _loaded? ) - @settings['retries' ] || 5 + @settings['retries' ].to_i || 5 end @@ -107,7 +107,7 @@ module Custodian def retry_delay _load() unless( _loaded? ) - @settings['retry_delay'] || 0 + @settings['retry_delay'].to_i || 0 end |