diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-04-14 12:30:45 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-04-14 12:30:45 +0200 |
commit | 27866eddb99885b6617fde0ee91ea7b1cd4873fb (patch) | |
tree | 41ba1e4eb4f30b8cc2951b9b3d6cbc86f103d126 /plugins | |
parent | 1dcd16b3d93ba91ba0bc0ba7560f7b3bb815ea1c (diff) | |
download | rsyslog-27866eddb99885b6617fde0ee91ea7b1cd4873fb.tar.gz rsyslog-27866eddb99885b6617fde0ee91ea7b1cd4873fb.tar.xz rsyslog-27866eddb99885b6617fde0ee91ea7b1cd4873fb.zip |
bugfix: doc for impstats had wrong config statements
also, config statements were named a bit inconsistent, resolved that
problem by introducing an alias and only documenting the consistent
statements
Thanks to Marcin for bringing up this problem.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/impstats/impstats.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/impstats/impstats.c b/plugins/impstats/impstats.c index aa98ae9d..cfbbad76 100644 --- a/plugins/impstats/impstats.c +++ b/plugins/impstats/impstats.c @@ -212,7 +212,9 @@ CODEmodInit_QueryRegCFSLineHdlr CHKiRet(objUse(prop, CORE_COMPONENT)); CHKiRet(objUse(errmsg, CORE_COMPONENT)); CHKiRet(objUse(statsobj, CORE_COMPONENT)); + /* the pstatsinverval is an alias to support a previous screwed-up syntax... */ CHKiRet(omsdRegCFSLineHdlr((uchar *)"pstatsinterval", 0, eCmdHdlrInt, NULL, &cs.iStatsInterval, STD_LOADABLE_MODULE_ID)); + CHKiRet(omsdRegCFSLineHdlr((uchar *)"pstatinterval", 0, eCmdHdlrInt, NULL, &cs.iStatsInterval, STD_LOADABLE_MODULE_ID)); CHKiRet(omsdRegCFSLineHdlr((uchar *)"pstatfacility", 0, eCmdHdlrInt, NULL, &cs.iFacility, STD_LOADABLE_MODULE_ID)); CHKiRet(omsdRegCFSLineHdlr((uchar *)"pstatseverity", 0, eCmdHdlrInt, NULL, &cs.iSeverity, STD_LOADABLE_MODULE_ID)); CHKiRet(omsdRegCFSLineHdlr((uchar *)"resetconfigvariables", 1, eCmdHdlrCustomHandler, resetConfigVariables, NULL, STD_LOADABLE_MODULE_ID)); |