summaryrefslogtreecommitdiffstats
path: root/tcps_sess.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcps_sess.c')
-rw-r--r--tcps_sess.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tcps_sess.c b/tcps_sess.c
index 8ba5cbec..f01114d6 100644
--- a/tcps_sess.c
+++ b/tcps_sess.c
@@ -234,8 +234,8 @@ static rsRetVal
defaultDoSubmitMessage(tcps_sess_t *pThis)
{
msg_t *pMsg;
- struct syslogTime stTime;
- time_t ttGenTime;
+ static struct syslogTime stTime; /* the static vars are currently OK (single input thread!) */
+ static time_t ttGenTime;
DEFiRet;
ISOBJ_TYPE_assert(pThis, tcps_sess);
@@ -245,6 +245,7 @@ defaultDoSubmitMessage(tcps_sess_t *pThis)
FINALIZE;
}
+RUNLOG_VAR("%ld", ttGenTime);
if((iTimeRequery == 0) || (iNbrTimeUsed++ % iTimeRequery) == 0) {
RUNLOG_STR("XXX: quering time!");
datetime.getCurrTime(&stTime, &ttGenTime);