mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
* minor: remove some mono compiler warnings, minor cleanup
This commit is contained in:
@@ -53,16 +53,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
|
||||
public class RegionStatsHandler : IStreamedRequestHandler
|
||||
{
|
||||
|
||||
{
|
||||
private string osRXStatsURI = String.Empty;
|
||||
private string osXStatsURI = String.Empty;
|
||||
private string osSecret = String.Empty;
|
||||
//private string osSecret = String.Empty;
|
||||
private OpenSim.Framework.RegionInfo regionInfo;
|
||||
public string localZone = TimeZone.CurrentTimeZone.StandardName;
|
||||
public TimeSpan utcOffset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now);
|
||||
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
public RegionStatsHandler(OpenSim.Framework.RegionInfo region_info )
|
||||
{
|
||||
@@ -94,10 +93,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
|
||||
private string Report()
|
||||
{
|
||||
|
||||
{
|
||||
OSDMap args = new OSDMap(30);
|
||||
int time = Util.ToUnixTime( DateTime.Now );
|
||||
//int time = Util.ToUnixTime( DateTime.Now );
|
||||
args["OSStatsURI"] = OSD.FromString("http://" + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort + "/" + osXStatsURI + "/");
|
||||
args["TimeZoneName"] = OSD.FromString(localZone);
|
||||
args["TimeZoneOffs"] = OSD.FromReal(utcOffset.TotalHours);
|
||||
|
||||
Reference in New Issue
Block a user