1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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

than the last on we reported.
This commit is contained in:
Poul-Henning Kamp 2003-02-01 10:06:40 +00:00
parent 0db3d1635c
commit 33bef83cc6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110185

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