timeval: Simplify poll interval logging.
authorEthan Jackson <ethan@nicira.com>
Fri, 19 Oct 2012 01:56:48 +0000 (18:56 -0700)
committerEthan Jackson <ethan@nicira.com>
Sun, 21 Oct 2012 00:26:38 +0000 (17:26 -0700)
commitd7a291ac1c105d9891c07cbb768e76947ad95963
tree4a114e35e2dc5d57247d3da4d762c53f44b000d9
parent0d2f19a957555dd34a371189c06d445442cc060e
timeval: Simplify poll interval logging.

log_poll_interval() is a little bit too aggressive, and is
therefore less useful than it could be.  This patch removes the
mean interval calculation, and simply logs if the poll loop took
longer than 1 second instead.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/timeval.c