diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-04-23 09:35:24 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-04-23 09:35:24 -0230 |
commit | f4c1d2eabfec5cd0232009b57b78b471e5fa6889 (patch) | |
tree | 532ab10abde644a0bd1b3d84838a8d65395ee718 /cpp/src/Ice/ThreadPool.cpp | |
parent | Bug 3969 - minimal demo should still parse command line arguments (diff) | |
download | ice-f4c1d2eabfec5cd0232009b57b78b471e5fa6889.tar.bz2 ice-f4c1d2eabfec5cd0232009b57b78b471e5fa6889.tar.xz ice-f4c1d2eabfec5cd0232009b57b78b471e5fa6889.zip |
Bugs 3002/3003 - default value of SizeWarn is now 0
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index 7f0e0254e56..647374cfbdb 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -54,8 +54,7 @@ IceInternal::ThreadPool::ThreadPool(const InstancePtr& instance, const string& p size = 1; } - int sizeMax = - _instance->initializationData().properties->getPropertyAsIntWithDefault(_prefix + ".SizeMax", size); + int sizeMax = _instance->initializationData().properties->getPropertyAsIntWithDefault(_prefix + ".SizeMax", size); if(sizeMax < size) { Warning out(_instance->initializationData().logger); @@ -63,8 +62,7 @@ IceInternal::ThreadPool::ThreadPool(const InstancePtr& instance, const string& p sizeMax = size; } - int sizeWarn = _instance->initializationData().properties-> - getPropertyAsIntWithDefault(_prefix + ".SizeWarn", sizeMax * 80 / 100); + int sizeWarn = _instance->initializationData().properties->getPropertyAsInt(_prefix + ".SizeWarn"); if(sizeWarn > sizeMax) { Warning out(_instance->initializationData().logger); |