aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorGlenn Martin2015-05-18 16:36:06 -0400
committerGlenn Martin2015-05-18 16:36:06 -0400
commit3efcef7d7e36f5c3c592f795d02ea1364b5f6e62 (patch)
tree9d646e917a289e4f0bbe229b63dff92eb4457d2d /OpenSim
parentMerge remote-tracking branch 'upstream/master' into moses.metricsPhase2 (diff)
parentFixed a bug that would cause the sim extra stats reporter to fail in reportin... (diff)
downloadopensim-SC_OLD-3efcef7d7e36f5c3c592f795d02ea1364b5f6e62.zip
opensim-SC_OLD-3efcef7d7e36f5c3c592f795d02ea1364b5f6e62.tar.gz
opensim-SC_OLD-3efcef7d7e36f5c3c592f795d02ea1364b5f6e62.tar.bz2
opensim-SC_OLD-3efcef7d7e36f5c3c592f795d02ea1364b5f6e62.tar.xz
Merge branch 'moses.metricsPhase2' of git.irl.ucf.edu:/irl/git/opensim into moses.metricsPhase2
Diffstat (limited to 'OpenSim')
-rwxr-xr-xOpenSim/Framework/Monitoring/SimExtraStatsCollector.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Framework/Monitoring/SimExtraStatsCollector.cs b/OpenSim/Framework/Monitoring/SimExtraStatsCollector.cs
index 432efdb..e4df7ee 100755
--- a/OpenSim/Framework/Monitoring/SimExtraStatsCollector.cs
+++ b/OpenSim/Framework/Monitoring/SimExtraStatsCollector.cs
@@ -433,7 +433,11 @@ Asset service request failures: {3}" + Environment.NewLine,
433 foreach (ProcessThread currentThread in 433 foreach (ProcessThread currentThread in
434 Process.GetCurrentProcess().Threads) 434 Process.GetCurrentProcess().Threads)
435 { 435 {
436 if (currentThread.ThreadState == ThreadState.Running) 436 // A known issue with the current process .Threads property is
437 // that it can return null threads, thus don't count those as
438 // running threads and prevent the program function from failing
439 if (currentThread != null &&
440 currentThread.ThreadState == ThreadState.Running)
437 { 441 {
438 numberThreadsRunning++; 442 numberThreadsRunning++;
439 } 443 }