Fix minor bug where the check whether to display SmartThreadPool stats was accidentally != null rather than == FireAndForgetMethod.SmartThreadPool

Due to another check this had no practical effect
cpu-performance
Justin Clark-Casey (justincc) 2013-06-20 00:20:04 +01:00
parent 3370e19205
commit d97333255d
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ namespace OpenSim.Framework.Monitoring
s.Value = iocpThreads;
});
if (Util.FireAndForgetMethod != null && Util.GetSmartThreadPoolInfo() != null)
if (Util.FireAndForgetMethod == FireAndForgetMethod.SmartThreadPool && Util.GetSmartThreadPoolInfo() != null)
{
MakeStat("STPMaxThreads", null, "threads", ContainerThreadpool, s => s.Value = Util.GetSmartThreadPoolInfo().MaxThreads);
MakeStat("STPMinThreads", null, "threads", ContainerThreadpool, s => s.Value = Util.GetSmartThreadPoolInfo().MinThreads);