From 0273de198efefac0792784a6ce99195186cd9121 Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Wed, 25 May 2022 22:00:49 +0800 Subject: [PATCH] Fix the bug of getting the number of threads --- .../java/cn/hippo4j/common/model/ThreadPoolParameterInfo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hippo4j-common/src/main/java/cn/hippo4j/common/model/ThreadPoolParameterInfo.java b/hippo4j-common/src/main/java/cn/hippo4j/common/model/ThreadPoolParameterInfo.java index a85009c2..36889319 100644 --- a/hippo4j-common/src/main/java/cn/hippo4j/common/model/ThreadPoolParameterInfo.java +++ b/hippo4j-common/src/main/java/cn/hippo4j/common/model/ThreadPoolParameterInfo.java @@ -114,10 +114,10 @@ public class ThreadPoolParameterInfo implements ThreadPoolParameter, Serializabl private Integer allowCoreThreadTimeOut; public Integer getCorePoolSize() { - return this.corePoolSize == null ? this.coreSize : null; + return this.corePoolSize == null ? this.coreSize : this.corePoolSize; } public Integer getMaximumPoolSize() { - return this.maximumPoolSize == null ? this.maxSize : null; + return this.maximumPoolSize == null ? this.maxSize : this.corePoolSize; } }