diff options
author | root <root@frank.tg14.gathering.org> | 2014-04-14 02:21:52 +0200 |
---|---|---|
committer | root <root@frank.tg14.gathering.org> | 2014-04-14 02:21:52 +0200 |
commit | c6c6e02a6466994329a65fbd31cb3d8305e13181 (patch) | |
tree | 167dc03e58ed6264c6f77350b25ffc5e8a69154c | |
parent | 3dbe60dc78a9d06b2ffbd19e2b82e7071e03dbf7 (diff) |
Only use officially polled ports for network traffic maps.
-rw-r--r-- | sql/nms.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/nms.sql b/sql/nms.sql index 45d9e7b..002ae6b 100644 --- a/sql/nms.sql +++ b/sql/nms.sql @@ -105,7 +105,7 @@ BEGIN num_entries := 0; last_poll.switch := -1; - FOR poll IN select * from polls where time >= now() - '15 minutes'::interval and time < now() order by switch,port,time LOOP + FOR poll IN select * from polls where time >= now() - '15 minutes'::interval and time < now() and official_port order by switch,port,time LOOP IF poll.switch <> last_poll.switch OR poll.port <> last_poll.port THEN IF num_entries >= 2 THEN timediff := EXTRACT(epoch from last_poll.time - first_poll.time); |