[PATCH 1 of 2] (issue1448) Also filter epoch values in sq_time_interval mode

Wald Commits scm-commit at wald.intevation.org
Fri Apr 24 17:18:52 CEST 2015


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1429888676 -7200
# Node ID 02162b60cf9c5557abc44d98f113cb8e7551c5bb
# Parent  093146703b98156298fe6ef067ff77010f61981c
(issue1448) Also filter epoch values in sq_time_interval mode

diff -r 093146703b98 -r 02162b60cf9c artifacts/src/main/java/org/dive4elements/river/artifacts/services/SedimentLoadInfoService.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/services/SedimentLoadInfoService.java	Fri Apr 24 15:57:49 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/services/SedimentLoadInfoService.java	Fri Apr 24 17:17:56 2015 +0200
@@ -91,7 +91,10 @@
 
             for (Iterator<Load> it = loads.iterator(); it.hasNext();) {
                 /* Skip loads without time interval for this info type. */
-                if (it.next().getSQRelationTimeIntervalId() == null) {
+                Load cur = it.next();
+                if (cur.getSQRelationTimeIntervalId() == null) {
+                    it.remove();
+                } else if (cur.isEpoch()) {
                     it.remove();
                 }
             }


More information about the Dive4Elements-commits mailing list