[PATCH] Fixed: computing of min and max date
Wald Commits
scm-commit at wald.intevation.org
Thu Aug 16 09:44:05 CEST 2018
# HG changeset patch
# User mschaefer
# Date 1534405435 -7200
# Node ID 52314c4ab3bed96ed6597d4dcae76f78d7315b83
# Parent 38201f5b0dd90db298580d09b2dd3c74e4d4ca2a
Fixed: computing of min and max date
diff -r 38201f5b0dd9 -r 52314c4ab3be artifacts/src/main/java/org/dive4elements/river/artifacts/services/DynamicMainValuesTimeRangeDeterminationService.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/services/DynamicMainValuesTimeRangeDeterminationService.java Thu Aug 16 08:47:41 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/services/DynamicMainValuesTimeRangeDeterminationService.java Thu Aug 16 09:43:55 2018 +0200
@@ -99,17 +99,17 @@
continue;
}
- if (gaugeDates[0].getTime() > startTime.getTime())
+ if (gaugeDates[0].getTime() > min.getTime())
min = gaugeDates[0];
- if (gaugeDates[1].getTime() < endTime.getTime())
+ if (gaugeDates[1].getTime() < max.getTime())
max = gaugeDates[1];
String errormsg = null;
if ((gaugeDates[1].getTime() < endTime.getTime()) || (gaugeDates[0].getTime() > startTime.getTime()))
errormsg = makeDoesNotCoverErrorMsg(gaugeDates[0], gaugeDates[1], meta);
- gaugeResults.add(new GaugeInfoResult.GaugeInfo(errormsg, gauge, min, max));
+ gaugeResults.add(new GaugeInfoResult.GaugeInfo(errormsg, gauge, gaugeDates[0], gaugeDates[1]));
}
// common Range and correct errorMsg
More information about the Dive4Elements-commits
mailing list