mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 19:00:12 +01:00
Even more refactoring for rules.c
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
181febf950
commit
cb4b65a840
@ -271,7 +271,7 @@ time_t query_retain_period(struct data *data, struct parser_state *state, int si
|
|||||||
if(p->domainlen > 2){
|
if(p->domainlen > 2){
|
||||||
if(strcasestr(state->b_to_domain, p->domain) || strcasestr(state->b_from_domain, p->domain)){
|
if(strcasestr(state->b_to_domain, p->domain) || strcasestr(state->b_from_domain, p->domain)){
|
||||||
state->retention = p->days;
|
state->retention = p->days;
|
||||||
return (time_t)p->days * (time_t)86400;
|
return (time_t)(state->retention) * (time_t)86400;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -305,7 +305,7 @@ time_t query_retain_period(struct data *data, struct parser_state *state, int si
|
|||||||
|
|
||||||
if(ismatch > 0){
|
if(ismatch > 0){
|
||||||
state->retention = p->days;
|
state->retention = p->days;
|
||||||
return (time_t)p->days * (time_t)86400;
|
return (time_t)(state->retention) * (time_t)86400;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user