a few more useless changes

This commit is contained in:
UbitUmarov
2024-04-08 21:43:03 +01:00
parent 44b0d30561
commit 5207b251c3
2 changed files with 113 additions and 128 deletions

View File

@@ -185,9 +185,9 @@ namespace OpenSim
MainServer.Instance.AddSimpleStreamHandler(new SimRobotsHandler());
MainServer.Instance.AddSimpleStreamHandler(new IndexPHPHandler(MainServer.Instance));
if (managedStatsURI != String.Empty)
if (!string.IsNullOrEmpty(managedStatsURI))
{
string urlBase = String.Format("/{0}/", managedStatsURI);
string urlBase = $"/{managedStatsURI}/";
StatsManager.StatsPassword = managedStatsPassword;
MainServer.Instance.AddHTTPHandler(urlBase, StatsManager.HandleStatsRequest);
m_log.InfoFormat("[OPENSIM] Enabling remote managed stats fetch. URL = {0}", urlBase);