fixes default value for cache_life_time

This commit is contained in:
Evgeniy Khramtsov 2010-09-21 04:31:18 +10:00
parent 3278f019cb
commit 8e5297f4c3
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ init([Host, Opts]) ->
{attributes, record_info(fields, caps_features)}]),
mnesia:add_table_copy(caps_features, node(), disc_only_copies),
MaxSize = gen_mod:get_opt(cache_size, Opts, 1000),
LifeTime = gen_mod:get_opt(cache_life_time, Opts, timer:hours(24)),
LifeTime = gen_mod:get_opt(cache_life_time, Opts, timer:hours(24) div 1000),
cache_tab:new(caps_features, [{max_size, MaxSize}, {life_time, LifeTime}]),
ejabberd_hooks:add(user_send_packet, Host,
?MODULE, user_send_packet, 75),