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 effectcpu-performance
parent
3370e19205
commit
d97333255d
|
@ -179,7 +179,7 @@ namespace OpenSim.Framework.Monitoring
|
||||||
s.Value = iocpThreads;
|
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("STPMaxThreads", null, "threads", ContainerThreadpool, s => s.Value = Util.GetSmartThreadPoolInfo().MaxThreads);
|
||||||
MakeStat("STPMinThreads", null, "threads", ContainerThreadpool, s => s.Value = Util.GetSmartThreadPoolInfo().MinThreads);
|
MakeStat("STPMinThreads", null, "threads", ContainerThreadpool, s => s.Value = Util.GetSmartThreadPoolInfo().MinThreads);
|
||||||
|
|
Loading…
Reference in New Issue