Fix stats calculation error

This commit is contained in:
Johan Wikman 2017-04-12 20:43:58 +03:00
parent 05d9d31499
commit 1464230714

View File

@ -338,7 +338,10 @@ void poll_waitevents(int epoll_fd,
if (nfds > 0)
{
poll_stats->evq_length = nfds;
poll_stats->evq_max = nfds;
if (nfds > poll_stats->evq_max)
{
poll_stats->evq_max = nfds;
}
timeout_bias = 1;
if (poll_spins <= number_poll_spins + 1)