You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/08/13 14:32:46 UTC

[5/5] git commit: Fixed CS

Fixed CS


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d9eb98ca
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d9eb98ca
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d9eb98ca

Branch: refs/heads/master
Commit: d9eb98ca842f938df0d00cc9008008d37801302f
Parents: fca7b24
Author: Claus Ibsen <da...@apache.org>
Authored: Tue Aug 13 14:32:30 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Tue Aug 13 14:32:30 2013 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/impl/DefaultStreamCachingStrategy.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/d9eb98ca/camel-core/src/main/java/org/apache/camel/impl/DefaultStreamCachingStrategy.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultStreamCachingStrategy.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultStreamCachingStrategy.java
index e119a49..fc833de 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/DefaultStreamCachingStrategy.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultStreamCachingStrategy.java
@@ -375,8 +375,8 @@ public class DefaultStreamCachingStrategy extends org.apache.camel.support.Servi
             if (spoolUsedHeapMemoryThreshold > 0) {
                 // must use double to calculate with decimals for the percentage
                 double used = heapUsage.getHeapMemoryUsage().getUsed();
-                double upper = limit == SpoolUsedHeapMemoryLimit.Committed ?
-                    heapUsage.getHeapMemoryUsage().getCommitted() : heapUsage.getHeapMemoryUsage().getMax();
+                double upper = limit == SpoolUsedHeapMemoryLimit.Committed
+                    ? heapUsage.getHeapMemoryUsage().getCommitted() : heapUsage.getHeapMemoryUsage().getMax();
                 double calc = (used / upper) * 100;
                 int percentage = (int) calc;