From: Ben Pfaff Date: Tue, 6 Apr 2010 18:17:39 +0000 (-0700) Subject: dpif: Really don't log many dpif errors. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e278140516c5fce346d882dd9ac51558f17cd14c;p=openvswitch dpif: Really don't log many dpif errors. The comment here was out of touch with the actual definition. Limiting a log message to 9999 per minute is not much of a limit! I suspect that I turned this way up during initial development at some point and forgot to turn it down to a reasonable level. --- diff --git a/lib/dpif.c b/lib/dpif.c index 315f11f9..8e5cf9ff 100644 --- a/lib/dpif.c +++ b/lib/dpif.c @@ -58,7 +58,7 @@ static struct shash dpif_classes = SHASH_INITIALIZER(&dpif_classes); static struct vlog_rate_limit dpmsg_rl = VLOG_RATE_LIMIT_INIT(600, 600); /* Not really much point in logging many dpif errors. */ -static struct vlog_rate_limit error_rl = VLOG_RATE_LIMIT_INIT(9999, 5); +static struct vlog_rate_limit error_rl = VLOG_RATE_LIMIT_INIT(60, 5); static void log_operation(const struct dpif *, const char *operation, int error);