aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sql/nms.sql2
1 files changed, 2 insertions, 0 deletions
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];
$$;