X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Ftimeval.c;h=ab564a12bdfa463209ad1da5f67310ca51177109;hb=7103dec49eb569c3196239da6c178a29c3003e2b;hp=5e423875852c450dbe212fee47b885b1593ff702;hpb=5f55c39b21e69025045437ffbd3bb98fe6ce2e89;p=openvswitch diff --git a/lib/timeval.c b/lib/timeval.c index 5e423875..ab564a12 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -317,10 +317,10 @@ log_poll_interval(long long int last_wakeup, const struct rusage *last_rusage) struct rusage rusage; getrusage(RUSAGE_SELF, &rusage); - VLOG_WARN("%u ms poll interval (%lld ms user, %lld ms system) " + VLOG_WARN("%lld ms poll interval (%lld ms user, %lld ms system) " "is over %u times the weighted mean interval %u ms " "(%u samples)", - (interval + 8) / 16, + now - last_wakeup, timeval_diff_msec(&rusage.ru_utime, &last_rusage->ru_utime), timeval_diff_msec(&rusage.ru_stime, &last_rusage->ru_stime), interval / mean_interval,