From 96d2ee8e314fb95a0066db50c5af585aef1700c3 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 7 Dec 2009 09:25:32 -0800 Subject: [PATCH] ofproto: Fix reversed inequality test. Thanks to Glen Gibb for pointing out the problem. --- ofproto/netflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/netflow.c b/ofproto/netflow.c index 2c7ae9e4..b0166638 100644 --- a/ofproto/netflow.c +++ b/ofproto/netflow.c @@ -210,7 +210,7 @@ netflow_set_options(struct netflow *nf, collectors_create(&nf_options->collectors, 0, &nf->collectors); old_timeout = nf->active_timeout; - if (nf_options->active_timeout < 0) { + if (nf_options->active_timeout > 0) { nf->active_timeout = nf_options->active_timeout; } else { nf->active_timeout = ACTIVE_TIMEOUT_DEFAULT; -- 2.30.2