Explicit conversion to seconds.

This commit is contained in:
Martin Edenhofer 2015-12-07 16:20:56 +01:00
parent 2b364f71c1
commit c58546285a

View file

@ -17,7 +17,7 @@ class Setting < ApplicationModel
@@change_id = nil # rubocop:disable Style/ClassVars
@@lookup_at = nil # rubocop:disable Style/ClassVars
if ENV['ZAMMAD_SETTING_TTL']
@@lookup_timeout = ENV['ZAMMAD_SETTING_TTL'].to_i # rubocop:disable Style/ClassVars
@@lookup_timeout = ENV['ZAMMAD_SETTING_TTL'].to_i.seconds # rubocop:disable Style/ClassVars
else
@@lookup_timeout = 2.minutes # rubocop:disable Style/ClassVars
end