MINOR: activity: get the run_time from the clock updates
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 09:34:46 +0000 (11:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 15:22:26 +0000 (17:22 +0200)
commit20adfde9c848e5c7ef54e28bf0cc9578ed7f3171
tree20df3daa92b2dc5f084f4874b378467aaac52bca
parentf9d5e1079cf14d532ebd65ee1ada771766114190
MINOR: activity: get the run_time from the clock updates

Instead of fiddling with before_poll and after_poll in
activity_count_runtime(), the function is now called by
clock_entering_poll() which passes it the number of microseconds
spent working. This allows to remove all calls to
activity_count_runtime() from the pollers.
include/haproxy/activity.h
src/activity.c
src/clock.c
src/ev_epoll.c
src/ev_evports.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c