diff options
author | Justin Clark-Casey (justincc) | 2012-03-16 03:56:56 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-19 21:32:50 +0000 |
commit | d36c7c37829d77c45c06116a5a5dbba387e810bf (patch) | |
tree | 6d37f5c53bc1198f803b3d8dec8804b51d2c87e9 | |
parent | Add total scripts count to "show threads" (diff) | |
download | opensim-SC_OLD-d36c7c37829d77c45c06116a5a5dbba387e810bf.zip opensim-SC_OLD-d36c7c37829d77c45c06116a5a5dbba387e810bf.tar.gz opensim-SC_OLD-d36c7c37829d77c45c06116a5a5dbba387e810bf.tar.bz2 opensim-SC_OLD-d36c7c37829d77c45c06116a5a5dbba387e810bf.tar.xz |
minor: reuse threadpool count we just fetched instead of fetching it again
-rw-r--r-- | OpenSim/Framework/Servers/BaseOpenSimServer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index cf0859e..5f5142b 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()); |