diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-09-16 11:56:07 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-09-16 11:56:07 +0200 |
commit | 760e5f0d3986aa93a07e207dde3206741ec3ad74 (patch) | |
tree | 81ccd4767e616810b19d946280cdf2fb6d841b89 /runtime/datetime.h | |
parent | 1e819a8afe9494cc760196ac91f3b617bc073de9 (diff) | |
download | rsyslog-760e5f0d3986aa93a07e207dde3206741ec3ad74.tar.gz rsyslog-760e5f0d3986aa93a07e207dde3206741ec3ad74.tar.xz rsyslog-760e5f0d3986aa93a07e207dde3206741ec3ad74.zip |
performance optimization: unnecessary time() calls during message parsing removed
thanks to David Lang for his excellent performance analysis
Diffstat (limited to 'runtime/datetime.h')
-rw-r--r-- | runtime/datetime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/datetime.h b/runtime/datetime.h index 755cc0ed..2210af02 100644 --- a/runtime/datetime.h +++ b/runtime/datetime.h @@ -36,8 +36,8 @@ typedef struct datetime_s { /* interfaces */ BEGINinterface(datetime) /* name must also be changed in ENDinterface macro! */ void (*getCurrTime)(struct syslogTime *t); - int (*ParseTIMESTAMP3339)(struct syslogTime *pTime, char** ppszTS); - int (*ParseTIMESTAMP3164)(struct syslogTime *pTime, char** pszTS); + rsRetVal (*ParseTIMESTAMP3339)(struct syslogTime *pTime, char** ppszTS); + rsRetVal (*ParseTIMESTAMP3164)(struct syslogTime *pTime, char** pszTS); int (*formatTimestampToMySQL)(struct syslogTime *ts, char* pDst, size_t iLenDst); int (*formatTimestampToPgSQL)(struct syslogTime *ts, char *pDst, size_t iLenDst); int (*formatTimestamp3339)(struct syslogTime *ts, char* pBuf, size_t iLenBuf); |