diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-26 08:18:26 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-26 08:18:26 +0000 |
commit | 0e2d246a2e07c62b692aa8ef15415fb77af921a7 (patch) | |
tree | 88e70efe399da4f0322fdb1236129ad6fc9bd8c0 /msg.c | |
parent | a628d02d9ff9d630119338e82007282b02d6196d (diff) | |
download | rsyslog-0e2d246a2e07c62b692aa8ef15415fb77af921a7.tar.gz rsyslog-0e2d246a2e07c62b692aa8ef15415fb77af921a7.tar.bz2 rsyslog-0e2d246a2e07c62b692aa8ef15415fb77af921a7.zip |
bugfix: QHOUR and HHOUR properties were wrongly calculated
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1273,10 +1273,10 @@ static uchar *getNOW(eNOWType eNow) snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.hour); break; case NOW_HHOUR: - snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.hour / 30); + snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.minute / 30); break; case NOW_QHOUR: - snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.hour / 15); + snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.minute / 15); break; case NOW_MINUTE: snprintf((char*) pBuf, tmpBUFSIZE, "%2.2d", t.minute); |