Under DIAGNOSTIC, only report expensive timeouts if they are more expensive

than the last on we reported.
This commit is contained in:
phk 2003-02-01 10:06:40 +00:00
parent 095827745e
commit 2f5b4a19f3

View File

@ -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);
}