diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-30 15:37:23 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-30 15:37:23 +0000 |
commit | 6cc46b15d953e1cd766f3f9f29011e740e51ca6c (patch) | |
tree | d97914e6db3c1decf888cd4a00fcb370f34e4801 /cfsysline.c | |
parent | f6f4bcb0fdb30646927724b2a86149e5b7d36e8b (diff) | |
download | rsyslog-6cc46b15d953e1cd766f3f9f29011e740e51ca6c.tar.gz rsyslog-6cc46b15d953e1cd766f3f9f29011e740e51ca6c.tar.xz rsyslog-6cc46b15d953e1cd766f3f9f29011e740e51ca6c.zip |
- implemented simple output rate limiting
- addded $ActionQueueDequeueSlowdown config directive
- addded $MainMsgQueueDequeueSlowdown config directive
- bugfix: MsgDup() did not work with new base object data structure
Diffstat (limited to 'cfsysline.c')
-rw-r--r-- | cfsysline.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cfsysline.c b/cfsysline.c index c87c2a54..d307569b 100644 --- a/cfsysline.c +++ b/cfsysline.c @@ -129,8 +129,11 @@ static rsRetVal parseIntVal(uchar **pp, size_t *pVal) } /* pull value */ - for(i = 0 ; *p && isdigit((int) *p) ; ++p) - i = i * 10 + *p - '0'; + for(i = 0 ; *p && (isdigit((int) *p) || *p == '.' || *p == ',') ; ++p) { + if(isdigit((int) *p)) { + i = i * 10 + *p - '0'; + } + } if(bWasNegative) i *= -1; |