summaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-27 17:38:20 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-27 17:38:20 +0000
commita67cd9683ec4a7091a512be705eef105f989410d (patch)
treef3b54a9fd131c2bb76922eabe923b01a1cb99364 /debug.c
parent4b44a34d71b8b9bfc2574adeff4e735a8e97c876 (diff)
downloadrsyslog-a67cd9683ec4a7091a512be705eef105f989410d.tar.gz
rsyslog-a67cd9683ec4a7091a512be705eef105f989410d.tar.xz
rsyslog-a67cd9683ec4a7091a512be705eef105f989410d.zip
fixed queue termination in case bSaveOnShutdown is 0
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug.c b/debug.c
index 474df03c..32bfab7c 100644
--- a/debug.c
+++ b/debug.c
@@ -726,8 +726,8 @@ dbgprintf(char *fmt, ...)
if(bWasNL) {
if(bPrintTime) {
clock_gettime(CLOCK_REALTIME, &t);
- fprintf(stddbg, "%4.4ld.%9.9ld:", t.tv_sec % 1000, t.tv_nsec);
- if(altdbg != NULL) fprintf(altdbg, "%4.4ld.%9.9ld:", t.tv_sec % 1000, t.tv_nsec);
+ fprintf(stddbg, "%4.4ld.%9.9ld:", t.tv_sec % 10000, t.tv_nsec);
+ if(altdbg != NULL) fprintf(altdbg, "%4.4ld.%9.9ld:", t.tv_sec % 10000, t.tv_nsec);
}
fprintf(stddbg, "%s: ", pszThrdName);
if(altdbg != NULL) fprintf(altdbg, "%s: ", pszThrdName);