diff options
| author | 2014-07-07 09:11:24 +0000 | |
|---|---|---|
| committer | 2014-07-07 09:11:24 +0000 | |
| commit | e267740e69b5a7e14e88f9a79e9b78eae78b9ae7 (patch) | |
| tree | b3203ea00a4ff75776517d76ea0327663c3a8a55 /usr.sbin/smtpd/queue_backend.c | |
| parent | mention that ProxyCommand is executed using shell "exec" to avoid (diff) | |
| download | wireguard-openbsd-e267740e69b5a7e14e88f9a79e9b78eae78b9ae7.tar.xz wireguard-openbsd-e267740e69b5a7e14e88f9a79e9b78eae78b9ae7.zip | |
Allow to enable profiling at runtime and fix timings output.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/queue_backend.c')
| -rw-r--r-- | usr.sbin/smtpd/queue_backend.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/queue_backend.c b/usr.sbin/smtpd/queue_backend.c index a57e4d1b419..27a0ea56537 100644 --- a/usr.sbin/smtpd/queue_backend.c +++ b/usr.sbin/smtpd/queue_backend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue_backend.c,v 1.50 2014/04/11 02:58:08 jsg Exp $ */ +/* $OpenBSD: queue_backend.c,v 1.51 2014/07/07 09:11:24 eric Exp $ */ /* * Copyright (c) 2011 Gilles Chehade <gilles@poolp.org> @@ -93,9 +93,8 @@ static inline void profile_leave(void) clock_gettime(CLOCK_MONOTONIC, &t1); timespecsub(&t1, &profile.t0, &dt); - log_debug("profile-queue: %s %lld.%06ld", profile.name, - (long long)dt.tv_sec * 1000000 + dt.tv_nsec / 1000000, - dt.tv_nsec % 1000000); + log_debug("profile-queue: %s %lld.%09ld", profile.name, + (long long)dt.tv_sec, dt.tv_nsec); } #else #define profile_enter(x) do {} while (0) |
