From b8938643faba3636510729e70c1018fd516cbfb7 Mon Sep 17 00:00:00 2001
From: root <root@frank.tg14.gathering.org>
Date: Fri, 18 Apr 2014 04:20:10 +0200
Subject: Remove some bogus polls.

---
 sql/nms.sql | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'sql/nms.sql')

diff --git a/sql/nms.sql b/sql/nms.sql
index 631fe13..cab4fbd 100644
--- a/sql/nms.sql
+++ b/sql/nms.sql
@@ -113,6 +113,8 @@ CREATE OR REPLACE FUNCTION get_current_datarate() RETURNS SETOF datarate
       ) t2
       WHERE
         time[2] IS NOT NULL
+        AND bytes_in[1] >= 0 AND bytes_out[1] >= 0
+        AND bytes_in[2] >= 0 AND bytes_out[2] >= 0
         AND bytes_out[1] >= bytes_out[2]
         AND bytes_in[1] >= bytes_in[2];
 $$;
-- 
cgit v1.2.3

