minor: reuse threadpool count we just fetched instead of fetching it again

0.7.3-post-fixes
Justin Clark-Casey (justincc) 2012-03-16 03:56:56 +00:00
parent 4385fcdeae
commit d36c7c3782
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ namespace OpenSim.Framework.Servers
// zero active threads.
int totalThreads = Process.GetCurrentProcess().Threads.Count;
if (totalThreads > 0)
sb.AppendFormat("Total threads active: {0}\n\n", Process.GetCurrentProcess().Threads.Count);
sb.AppendFormat("Total threads active: {0}\n\n", totalThreads);
sb.Append("Main threadpool (excluding script engine pools)\n");
sb.Append(Util.GetThreadPoolReport());