Refactored query_retain_period()

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-10-17 06:47:43 +00:00
parent c37a5f2084
commit 181febf950

View File

@ -317,7 +317,7 @@ time_t query_retain_period(struct data *data, struct parser_state *state, int si
state->retention = cfg->default_retention_days; state->retention = cfg->default_retention_days;
return (time_t)cfg->default_retention_days * (time_t)86400; return (time_t)(state->retention) * (time_t)86400;
} }