Mercurial > dive4elements > river
changeset 9206:b38be7ea53e2
Fixed approx char restaurated, findValue condition for zone name corrected
author | mschaefer |
---|---|
date | Mon, 02 Jul 2018 19:02:24 +0200 |
parents | 4f411c6ee3ae |
children | 559775e2f53c |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/GaugeMainValueFinder.java |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/GaugeMainValueFinder.java Mon Jul 02 17:40:39 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/GaugeMainValueFinder.java Mon Jul 02 19:02:24 2018 +0200 @@ -38,7 +38,7 @@ private final MainValueTypeKey keyType; - private final String approxPrefix = "ca."; // "\u2248" geht wohl nicht + private final String approxPrefix = "\u2248"; private Entry<Double, MainValue> foundCeiling; @@ -87,7 +87,8 @@ * (name for an exact match, circa expression for +/- 10% match, less-than/between/greater-than expression otherwise) */ public String findZoneName(final double value) { - if (!this.findValue(value)) + this.findValue(value); + if (Double.isNaN(this.foundRelativeDistance)) return ""; // Clearly below or just (max. 10%) below lowest named value