diff options
| author | Ben Pfaff <blp@nicira.com> | 2009-12-07 09:25:32 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2009-12-07 09:26:00 -0800 |
| commit | 96d2ee8e314fb95a0066db50c5af585aef1700c3 (patch) | |
| tree | 9a8601f600fe48b0b70dc1edb1833c1a908f065f /ofproto/netflow.c | |
| parent | c1546e02092566575b7b4d1d52981fbadfea56f7 (diff) | |
| download | openvswitch-96d2ee8e314fb95a0066db50c5af585aef1700c3.tar.gz | |
ofproto: Fix reversed inequality test.
Thanks to Glen Gibb <grg@stanford.edu> for pointing out the problem.
Diffstat (limited to 'ofproto/netflow.c')
| -rw-r--r-- | ofproto/netflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/netflow.c b/ofproto/netflow.c index 2c7ae9e43..b01666386 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; |
