diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-12 13:23:03 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-11-12 13:23:03 +0100 |
commit | 329b20451f0ed767dbf08903cab9a380ff1f4302 (patch) | |
tree | 9a99e78a33388902f16da421e48b47ba709a1cf1 /action.c | |
parent | ef1b6c725bb7b8e3cee6e4264a630975a496c5bd (diff) | |
parent | 0fd8143d8719d08d9feb0a304bb352dd7c4bbab6 (diff) | |
download | rsyslog-329b20451f0ed767dbf08903cab9a380ff1f4302.tar.gz rsyslog-329b20451f0ed767dbf08903cab9a380ff1f4302.tar.xz rsyslog-329b20451f0ed767dbf08903cab9a380ff1f4302.zip |
Merge branch 'v4-beta' into v4-devel
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -710,7 +710,7 @@ actionWriteToAction(action_t *pAction) * a purely logical point of view. However, if safes us to check the system time in * (those common) cases where ExecOnceInterval is not used. -- rgerhards, 2008-09-16 */ - if(pAction->f_time != 0 && pAction->iSecsExecOnceInterval > 0 && + if(pAction->iSecsExecOnceInterval > 0 && pAction->iSecsExecOnceInterval + pAction->tLastExec > getActNow(pAction)) { /* in this case we need to discard the message - its not yet time to exec the action */ DBGPRINTF("action not yet ready again to be executed, onceInterval %d, tCurr %d, tNext %d\n", @@ -721,6 +721,7 @@ actionWriteToAction(action_t *pAction) } /* we use reception time, not dequeue time - this is considered more appropriate and also faster ;) -- rgerhards, 2008-09-17 */ + pAction->tLastExec = getActNow(pAction); /* re-init time flags */ pAction->f_time = pAction->f_pMsg->ttGenTime; /* When we reach this point, we have a valid, non-disabled action. |