2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00

timeval: Don't issue poll interval warnings when we warp time.

It's not meaningful in that case.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
Ben Pfaff
2013-02-01 10:25:51 -08:00
parent 1f76f3b740
commit 6e97c6506e

View File

@@ -516,7 +516,7 @@ log_poll_interval(long long int last_wakeup)
{
long long int interval = time_msec() - last_wakeup;
if (interval >= 1000) {
if (interval >= 1000 && !warp_offset.tv_sec && !warp_offset.tv_nsec) {
const struct rusage *last_rusage = get_recent_rusage();
struct rusage rusage;