Rename Watchdog.GetThreads() to GetThreadsInfo() to reflect what it actually returns and for consistency.

xassetservice
Justin Clark-Casey (justincc) 2012-02-24 05:15:47 +00:00
parent 84735b644c
commit 9e6ffe7798
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ namespace OpenSim.Framework.Servers
string reportFormat = "{0,6} {1,35} {2,16} {3,13} {4,10} {5,30}";
StringBuilder sb = new StringBuilder();
Watchdog.ThreadWatchdogInfo[] threads = Watchdog.GetThreads();
Watchdog.ThreadWatchdogInfo[] threads = Watchdog.GetThreadsInfo();
sb.Append(threads.Length + " threads are being tracked:" + Environment.NewLine);

View File

@ -230,7 +230,7 @@ namespace OpenSim.Framework
/// Get currently watched threads for diagnostic purposes
/// </summary>
/// <returns></returns>
public static ThreadWatchdogInfo[] GetThreads()
public static ThreadWatchdogInfo[] GetThreadsInfo()
{
lock (m_threads)
return m_threads.Values.ToArray();