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
This commit is contained in:
Justin Clark-Casey (justincc)
2013-06-20 00:20:04 +01:00
parent 3370e19205
commit d97333255d

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);