From 0aa6e4d988fcdf49e7da0f7e980b90bed04c319a Mon Sep 17 00:00:00 2001 From: Oscar Zhao Date: Wed, 20 May 2020 04:25:02 -0400 Subject: [PATCH] add last_nkev --- sys/kern/kern_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index 85df2231f886..a9e04140e718 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -493,7 +493,7 @@ kevq_exp_lat(struct kevq *kevq) // CTR2(KTR_KQ, "kevq_exp_lat: %p too behind. setting new last_kevq: %ld", kevq, last_kev); } - return kevq->kevq_avg_lat * (kevq_total_knote(kevq) + kevq->kn_proc_count) + last_kev; + return kevq->kevq_avg_lat * (kevq_total_knote(kevq) + kevq->kevq_last_nkev) + last_kev; } static inline long