aboutsummaryrefslogtreecommitdiff
path: root/lib/poll-loop.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-05-25 13:54:38 -0700
committerBen Pfaff <blp@nicira.com>2012-06-01 17:40:34 -0400
commitcf1b8a921b4a1b660648925377783b7bbe92fb3e (patch)
tree41e129cc9f9c5c6c63ab0aa5f22040a6f924f987 /lib/poll-loop.c
parenta6492d9187196583d1a183a1559bc594af475123 (diff)
poll-loop: More strictly rate-limit high CPU use logging.
120 messages per minute just isn't helpful. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/poll-loop.c')
-rw-r--r--lib/poll-loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/poll-loop.c b/lib/poll-loop.c
index ba6c3a1a..516cf13d 100644
--- a/lib/poll-loop.c
+++ b/lib/poll-loop.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -157,7 +157,7 @@ poll_immediate_wake(const char *where)
static void
log_wakeup(const char *where, const struct pollfd *pollfd, int timeout)
{
- static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(120, 120);
+ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(10, 10);
enum vlog_level level;
int cpu_usage;
struct ds s;