summaryrefslogtreecommitdiffstats
path: root/dirty.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-09-16 11:56:07 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-09-16 11:56:07 +0200
commit760e5f0d3986aa93a07e207dde3206741ec3ad74 (patch)
tree81ccd4767e616810b19d946280cdf2fb6d841b89 /dirty.h
parent1e819a8afe9494cc760196ac91f3b617bc073de9 (diff)
downloadrsyslog-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 'dirty.h')
-rw-r--r--dirty.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dirty.h b/dirty.h
index 74c1ea86..796df18e 100644
--- a/dirty.h
+++ b/dirty.h
@@ -32,7 +32,7 @@
#define NOFLAG 0x000 /* no flag is set (to be used when a flag must be specified and none is required) */
#define INTERNAL_MSG 0x001 /* msg generated by logmsgInternal() --> special handling */
/* NO LONGER USED: #define SYNC_FILE 0x002 / * do fsync on file after printing */
-#define ADDDATE 0x004 /* add a date to the message */
+#define IGNDATE 0x004 /* ignore, if given, date in message and use date of reception as msg date */
#define MARK 0x008 /* this message is a mark */
#define MSG_PARSE_HOSTNAME 1