summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-09-02 12:03:32 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-09-02 12:03:32 +0200
commit25bc87872aabe03b35ca81f6be069b686e6a8435 (patch)
tree8d5f2f98e191857e8e04cd816ee96de6a38e8629 /action.c
parent1a9ac0ced72dd163228438af4f31f233fab20529 (diff)
parent2082d963975a88c8e4dee3a43b98d939f9a2323f (diff)
downloadrsyslog-25bc87872aabe03b35ca81f6be069b686e6a8435.tar.gz
rsyslog-25bc87872aabe03b35ca81f6be069b686e6a8435.tar.xz
rsyslog-25bc87872aabe03b35ca81f6be069b686e6a8435.zip
Merge branch 'beta'
Conflicts: ChangeLog action.c configure.ac doc/manual.html
Diffstat (limited to 'action.c')
-rw-r--r--action.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/action.c b/action.c
index 3a2584de..fb7f6d9f 100644
--- a/action.c
+++ b/action.c
@@ -514,6 +514,10 @@ actionWriteToAction(action_t *pAction)
pMsgSave = NULL; /* indicate message poiner not saved */
time(&now); /* we need this for several use cases, but obtain it once for performance reasons */
+ if(pAction->tLastExec > now) {
+ /* if we are traveling back in time, reset tLastExec */
+ pAction->tLastExec = (time_t) 0;
+ }
/* first, we check if the action should actually be called. The action-specific
* $ActionExecOnlyEveryNthTime permits us to execute an action only every Nth
@@ -522,7 +526,6 @@ actionWriteToAction(action_t *pAction)
* as the action was properly "passed to execution" from the upper layer's point
* of view. -- rgerhards, 2008-08-07.
*/
-dbgprintf("NTH: conf: %d, actual %d\n", pAction->iExecEveryNthOccur, pAction->iNbrNoExec);
if(pAction->iExecEveryNthOccur > 1) {
/* we need to care about multiple occurences */
if( pAction->iExecEveryNthOccurTO > 0