summaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-26 08:18:17 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-26 08:18:17 +0000
commit562906e64aa11fbf0e2b104b55b2a98233df9ae5 (patch)
treea64ae26f0d6010cc8a6dd91fda69959ba9c6162d /msg.c
parentd6258e5c91f3fb73483b385f9e3b6d239ca21095 (diff)
downloadrsyslog-562906e64aa11fbf0e2b104b55b2a98233df9ae5.tar.gz
rsyslog-562906e64aa11fbf0e2b104b55b2a98233df9ae5.tar.xz
rsyslog-562906e64aa11fbf0e2b104b55b2a98233df9ae5.zip
bugfix: QHOUR and HHOUR properties were wrongly calculated
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/msg.c b/msg.c
index d2713871..0875cd50 100644
--- a/msg.c
+++ b/msg.c
@@ -1509,10 +1509,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);