You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/04/24 11:07:46 UTC
(camel) 04/08: (chores) camel-core: code cleanup
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 9cfdb5042c8b15b93d6f82d6246226f1eeff8b89
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Apr 23 11:41:16 2024 +0200
(chores) camel-core: code cleanup
Avoid pointless operations
---
.../src/main/java/org/apache/camel/management/mbean/LoadTriplet.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/camel-management/src/main/java/org/apache/camel/management/mbean/LoadTriplet.java b/core/camel-management/src/main/java/org/apache/camel/management/mbean/LoadTriplet.java
index 02af22cb527..fba87014e15 100644
--- a/core/camel-management/src/main/java/org/apache/camel/management/mbean/LoadTriplet.java
+++ b/core/camel-management/src/main/java/org/apache/camel/management/mbean/LoadTriplet.java
@@ -22,7 +22,7 @@ package org.apache.camel.management.mbean;
public final class LoadTriplet {
// Exponents for EWMA: exp(-INTERVAL / WINDOW) (in seconds)
- private static final double EXP_1 = Math.exp(-1 / (60.0 * 1.0));
+ private static final double EXP_1 = Math.exp(-1 / (60.0));
private static final double EXP_5 = Math.exp(-1 / (60.0 * 5.0));
private static final double EXP_15 = Math.exp(-1 / (60.0 * 15.0));