This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new aeabf10d5d99 fixes CAMEL-23097. Sample default period is restored when 
created via ProcessorDefinition (#21632)
aeabf10d5d99 is described below

commit aeabf10d5d99f019896b34a16e7536cb2b16a6f6
Author: JiriOndrusek <[email protected]>
AuthorDate: Mon Mar 2 14:27:02 2026 +0100

    fixes CAMEL-23097. Sample default period is restored when created via 
ProcessorDefinition (#21632)
---
 .../src/main/java/org/apache/camel/reifier/SamplingReifier.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/SamplingReifier.java
 
b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/SamplingReifier.java
index 948228fe7e5d..d32ed654e97a 100644
--- 
a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/SamplingReifier.java
+++ 
b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/SamplingReifier.java
@@ -37,7 +37,7 @@ public class SamplingReifier extends 
ProcessorReifier<SamplingDefinition> {
         if (freq != null) {
             answer = new SamplingThrottler(freq);
         } else {
-            long time = parseDuration(definition.getSamplePeriod(), 1);
+            long time = parseDuration(definition.getSamplePeriod(), 1000);
             answer = new SamplingThrottler(time, TimeUnit.MILLISECONDS);
         }
         answer.setDisabled(isDisabled(camelContext, definition));

Reply via email to