summaryrefslogtreecommitdiff
path: root/action.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2008-11-20 12:49:20 +0100
committerMichael Biebl <biebl@debian.org>2008-11-20 12:49:20 +0100
commitc16d7e48359ded62765f551d05d9b289240a2ec1 (patch)
treed032d278be583fbd6aa65722d5e30122cb158834 /action.c
parent1f6d3725822e3fd676ca66d1b7f841ce2c9c434f (diff)
downloadrsyslog-c16d7e48359ded62765f551d05d9b289240a2ec1.tar.gz
Imported Upstream version 3.18.5upstream/3.18.5
Diffstat (limited to 'action.c')
-rw-r--r--action.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/action.c b/action.c
index 39c37b5..5de16b2 100644
--- a/action.c
+++ b/action.c
@@ -105,7 +105,7 @@ actionResetQueueParams(void)
iActionQHighWtrMark = 800; /* high water mark for disk-assisted queues */
iActionQLowWtrMark = 200; /* low water mark for disk-assisted queues */
iActionQDiscardMark = 9800; /* begin to discard messages */
- iActionQDiscardSeverity = 4; /* discard warning and above */
+ iActionQDiscardSeverity = 8; /* discard warning and above */
iActionQueueNumWorkers = 1; /* number of worker threads for the mm queue above */
iActionQueMaxFileSize = 1024*1024;
iActionQPersistUpdCnt = 0; /* persist queue info every n updates */
@@ -544,6 +544,10 @@ actionWriteToAction(action_t *pAction)
dbgprintf("Called action, logging to %s", module.GetStateName(pAction->pMod));
time(&now); /* we need this for message repeation processing AND $ActionExecOnlyOnceEveryInterval */
+ if(pAction->tLastExec > now) {
+ /* if we are traveling back in time, reset tLastExec */
+ pAction->tLastExec = (time_t) 0;
+ }
/* now check if we need to drop the message because otherwise the action would be too
* frequently called. -- rgerhards, 2008-04-08
*/