[ovs-dev] [test log scan v2 5/6] timeval: Don't issue poll interval warnings when we warp time.

Ethan Jackson ethan at nicira.com
Tue Feb 5 21:03:31 UTC 2013


Acked-by: Ethan Jackson <ethan at nicira.com>

On Fri, Feb 1, 2013 at 10:48 AM, Ben Pfaff <blp at nicira.com> wrote:
> It's not meaningful in that case.
>
> Signed-off-by: Ben Pfaff <blp at nicira.com>
> ---
>  lib/timeval.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/timeval.c b/lib/timeval.c
> index d91305c..4ffb756 100644
> --- a/lib/timeval.c
> +++ b/lib/timeval.c
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc.
> + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
>   *
>   * Licensed under the Apache License, Version 2.0 (the "License");
>   * you may not use this file except in compliance with the License.
> @@ -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;
>
> --
> 1.7.2.5
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list