mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Get the full viewer name even if it's (incorrectly) sent in the 'Channel' field
Recent versions of Firestorm and Singularity have started sending the viewer name in the 'Channel' field, leaving only their version number in the 'Viewer' field. So we need to search both of these fields for the viewer name. This resolves http://opensimulator.org/mantis/view.php?id=6952
This commit is contained in:
@@ -669,7 +669,7 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden
|
||||
aCircuit = new AgentCircuitData();
|
||||
|
||||
if (!llClient.SceneAgent.IsChildAgent)
|
||||
m_log.InfoFormat("[INFO]: {0} # {1} # {2}", llClient.Name, aCircuit.Viewer, aCircuit.Id0);
|
||||
m_log.InfoFormat("[INFO]: {0} # {1} # {2}", llClient.Name, Util.GetViewerName(aCircuit), aCircuit.Id0);
|
||||
|
||||
int avg_reqs = cinfo.AsyncRequests.Values.Sum() + cinfo.GenericRequests.Values.Sum() + cinfo.SyncRequests.Values.Sum();
|
||||
avg_reqs = avg_reqs / ((DateTime.Now - cinfo.StartedTime).Minutes + 1);
|
||||
@@ -706,4 +706,4 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden
|
||||
m_log.InfoFormat("[INFO]: {0,25} {1,-6}", "Total", sum);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user