mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 00:20:42 +01:00
bugfix: subseconds where not correctly extracted from a timestamp
if that timestamp did not contain any subsecond information (the resulting string was garbagge but should have been "0", what it now is).
This commit is contained in:
parent
9812a2af8c
commit
1ec858244e
@ -1,5 +1,9 @@
|
||||
---------------------------------------------------------------------------
|
||||
Version 3.19.12 [BETA] (rgerhards), 2008-08-25
|
||||
- bugfix: subseconds where not correctly extracted from a timestamp
|
||||
if that timestamp did not contain any subsecond information (the
|
||||
resulting string was garbagge but should have been "0", what it
|
||||
now is).
|
||||
---------------------------------------------------------------------------
|
||||
Version 3.19.11 [BETA] (rgerhards), 2008-08-25
|
||||
This is a refresh of the beta. No beta-specific fixes have been added.
|
||||
|
||||
@ -534,7 +534,7 @@ int formatTimestampSecFrac(struct syslogTime *ts, char* pBuf, size_t iLenBuf)
|
||||
lenRet = snprintf(pBuf, iLenBuf, szFmtStr, ts->secfrac);
|
||||
} else {
|
||||
pBuf[0] = '0';
|
||||
pBuf[1] = '1';
|
||||
pBuf[1] = '\0';
|
||||
lenRet = 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user