aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseOpenSimServer.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-03-16 03:56:56 +0000
committerJustin Clark-Casey (justincc)2012-03-16 03:56:56 +0000
commit59b6f6a6e03417360d9ea94b8e9cabc8569ffe89 (patch)
tree4b368dee253b530ba17f1892a805ce424395c91f /OpenSim/Framework/Servers/BaseOpenSimServer.cs
parentAdd total scripts count to "show threads" (diff)
downloadopensim-SC_OLD-59b6f6a6e03417360d9ea94b8e9cabc8569ffe89.zip
opensim-SC_OLD-59b6f6a6e03417360d9ea94b8e9cabc8569ffe89.tar.gz
opensim-SC_OLD-59b6f6a6e03417360d9ea94b8e9cabc8569ffe89.tar.bz2
opensim-SC_OLD-59b6f6a6e03417360d9ea94b8e9cabc8569ffe89.tar.xz
minor: reuse threadpool count we just fetched instead of fetching it again
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index 6da1436..06a8021 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -278,7 +278,7 @@ namespace OpenSim.Framework.Servers
278 // zero active threads. 278 // zero active threads.
279 int totalThreads = Process.GetCurrentProcess().Threads.Count; 279 int totalThreads = Process.GetCurrentProcess().Threads.Count;
280 if (totalThreads > 0) 280 if (totalThreads > 0)
281 sb.AppendFormat("Total threads active: {0}\n\n", Process.GetCurrentProcess().Threads.Count); 281 sb.AppendFormat("Total threads active: {0}\n\n", totalThreads);
282 282
283 sb.Append("Main threadpool (excluding script engine pools)\n"); 283 sb.Append("Main threadpool (excluding script engine pools)\n");
284 sb.Append(Util.GetThreadPoolReport()); 284 sb.Append(Util.GetThreadPoolReport());