summaryrefslogtreecommitdiffstats
path: root/plugins/imfile
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-10-02 15:52:24 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-10-02 15:52:24 +0200
commit02bb3c901d9b14e8a08b111dde151f1ed4d2d1da (patch)
treea54cde6c8c8be2665aa9df16f207d32106af2750 /plugins/imfile
parent1908bae50491624d270c73609ea45634c15246fd (diff)
downloadrsyslog-02bb3c901d9b14e8a08b111dde151f1ed4d2d1da.tar.gz
rsyslog-02bb3c901d9b14e8a08b111dde151f1ed4d2d1da.tar.xz
rsyslog-02bb3c901d9b14e8a08b111dde151f1ed4d2d1da.zip
consolidated time calls during msg object creation
...this improves performance and consistency and also fixes a bug where subsecond time properties generated by imfile, imklog and internal messages could be slightly inconsistent.
Diffstat (limited to 'plugins/imfile')
-rw-r--r--plugins/imfile/imfile.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c
index e8e10fca..b0211bf6 100644
--- a/plugins/imfile/imfile.c
+++ b/plugins/imfile/imfile.c
@@ -103,7 +103,6 @@ static rsRetVal enqLine(fileInfo_t *pInfo, cstr_t *cstrLine)
pMsg->iFacility = LOG_FAC(pInfo->iFacility);
pMsg->iSeverity = LOG_PRI(pInfo->iSeverity);
pMsg->bParseHOSTNAME = 0;
- datetime.getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */
CHKiRet(submitMsg(pMsg));
finalize_it:
RETiRet;