[Dive4elements-commits] [PATCH] Bed quality calculation: Fixed a calculation typo: s/sum =+ d/sum += d/

Wald Commits scm-commit at wald.intevation.org
Sun Jun 2 13:45:16 CEST 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1370173512 -7200
# Node ID 1f057463765b5bef1dcdd436edeab0977f7114c6
# Parent  3c8147ba35a651f430c581b9e596ef6fe778ecf0
Bed quality calculation: Fixed a calculation typo: s/sum =+ d/sum += d/

diff -r 3c8147ba35a6 -r 1f057463765b artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityCalculation.java
--- 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;


More information about the Dive4elements-commits mailing list