From 0c46df973ad08381a7fcdb892e4525dfdb1d6ee4 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 5 Oct 2009 21:02:10 -0700 Subject: Correction on the DEBUG code. --- OpenSim/Region/Framework/Scenes/Scene.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 35e57e5..d0dc021 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -963,11 +963,10 @@ namespace OpenSim.Region.Framework.Scenes while (!shuttingdown) { #if DEBUG - int w = 0, io = 0, maxw=0, maxio=0; + int w = 0, io = 0; ThreadPool.GetAvailableThreads(out w, out io); - ThreadPool.GetMaxThreads(out maxw, out maxio); - if ((maxw - w < 10) || (maxio - io < 10)) - m_log.DebugFormat("[WARNING]: ThreadPool reaching exhaustion. workers = {0}({1}); io = {2}({3})", w, io, maxw, maxio); + if ((w < 10) || (io < 10)) + m_log.DebugFormat("[WARNING]: ThreadPool reaching exhaustion. workers = {0}; io = {1}", w, io); #endif maintc = Environment.TickCount; -- cgit v1.1