[Dive4elements-commits] [PATCH 1 of 4] Minor part of issue1235: dont show decimals of years

Wald Commits scm-commit at wald.intevation.org
Wed Apr 17 14:52:44 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1366185973 -7200
# Node ID a4a894b15c35df411f8c8e5fafb38114134cbca0
# Parent  0516c1f8f6745b0a93eda4257d583d534510551d
Minor part of issue1235: dont show decimals of years.

diff -r 0516c1f8f674 -r a4a894b15c35 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadCalculation.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadCalculation.java	Wed Apr 17 09:25:07 2013 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadCalculation.java	Wed Apr 17 10:06:13 2013 +0200
@@ -258,23 +258,23 @@
         logger.debug("calculateTotalLoad");
         boolean problemThisYear = false;
         if (!load.hasCoarse()) {
-            addProblem("missing.fraction.coarse", Double.toString(year));
+            addProblem("missing.fraction.coarse", Integer.toString(year));
             problemThisYear = true;
         }
         if (!load.hasFineMiddle()) {
-            addProblem("missing.fraction.fine_middle", Double.toString(year));
+            addProblem("missing.fraction.fine_middle", Integer.toString(year));
             problemThisYear = true;
         }
         if (!load.hasSand()) {
-            addProblem("missing.fraction.sand", Double.toString(year));
+            addProblem("missing.fraction.sand", Integer.toString(year));
             problemThisYear = true;
         }
         if (!load.hasSuspSand()) {
-            addProblem("missing.fraction.susp_sand", Double.toString(year));
+            addProblem("missing.fraction.susp_sand", Integer.toString(year));
             problemThisYear = true;
         }
         if (!load.hasSuspSediment()) {
-            addProblem("missing.fraction.susp_sediment", Double.toString(year));
+            addProblem("missing.fraction.susp_sediment", Integer.toString(year));
             problemThisYear = true;
         }
         if (problemThisYear) {


More information about the Dive4elements-commits mailing list