summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-26 08:18:26 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-26 08:18:26 +0000
commit0e2d246a2e07c62b692aa8ef15415fb77af921a7 (patch)
tree88e70efe399da4f0322fdb1236129ad6fc9bd8c0
parenta628d02d9ff9d630119338e82007282b02d6196d (diff)
downloadrsyslog-0e2d246a2e07c62b692aa8ef15415fb77af921a7.tar.gz
rsyslog-0e2d246a2e07c62b692aa8ef15415fb77af921a7.tar.xz
rsyslog-0e2d246a2e07c62b692aa8ef15415fb77af921a7.zip
bugfix: QHOUR and HHOUR properties were wrongly calculated
-rw-r--r--msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/msg.c b/msg.c
index 16180e56..fa3e747f 100644
--- a/msg.c
+++ b/msg.c
@@ -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);