changeset 6150:1f057463765b

Bed quality calculation: Fixed a calculation typo: s/sum =+ d/sum += d/
author Sascha L. Teichmann <teichmann@intevation.de>
date Sun, 02 Jun 2013 13:45:12 +0200
parents 3c8147ba35a6
children 63d1e2a9b311
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityCalculation.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityCalculation.java	Sun Jun 02 02:43:00 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityCalculation.java	Sun Jun 02 13:45:12 2013 +0200
@@ -331,7 +331,7 @@
 
         double sum = 0d;
         for (Double d : dm.values()) {
-            sum =+ d.doubleValue();
+            sum += d.doubleValue();
         }
         double weight = sum/100*value;
         return weight;

http://dive4elements.wald.intevation.org