From 6e97c6506ea22f300966d6210a2fa742a9e04e71 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 1 Feb 2013 10:25:51 -0800 Subject: [PATCH] timeval: Don't issue poll interval warnings when we warp time. It's not meaningful in that case. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- lib/timeval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeval.c b/lib/timeval.c index ef9c8fe88..2f0035528 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -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; -- 2.47.0