diff options
author | phk <phk@FreeBSD.org> | 2003-02-01 10:06:40 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-01 10:06:40 +0000 |
commit | 2f5b4a19f3d32cf00ab39a28772484008afb06f0 (patch) | |
tree | bbe1d953352d53548bab0671db770e7b33185d25 /sys/kern/kern_timeout.c | |
parent | 095827745e3e45ebf90cbc80df0e05090f128a42 (diff) | |
download | FreeBSD-src-2f5b4a19f3d32cf00ab39a28772484008afb06f0.zip FreeBSD-src-2f5b4a19f3d32cf00ab39a28772484008afb06f0.tar.gz |
Under DIAGNOSTIC, only report expensive timeouts if they are more expensive
than the last on we reported.
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r-- | sys/kern/kern_timeout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index 11dc514..34b6d8c 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -197,9 +197,10 @@ softclock(void *dummy) binuptime(&bt2); bintime_sub(&bt2, &bt1); if (bt2.frac > maxdt) { + maxdt = bt2.frac; bintime2timespec(&bt2, &ts2); printf( - "Expensive timeout(9) function: %p(%p) %d.%09ld\n", + "Expensive timeout(9) function: %p(%p) %d.%09ld s\n", c_func, c_arg, ts2.tv_sec, ts2.tv_nsec); } |