diff options
Diffstat (limited to 'OpenSim/Region/UserStatistics/ActiveConnectionsAJAX.cs')
-rw-r--r-- | OpenSim/Region/UserStatistics/ActiveConnectionsAJAX.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/UserStatistics/ActiveConnectionsAJAX.cs b/OpenSim/Region/UserStatistics/ActiveConnectionsAJAX.cs index 2dcd2b8..ed8fc40 100644 --- a/OpenSim/Region/UserStatistics/ActiveConnectionsAJAX.cs +++ b/OpenSim/Region/UserStatistics/ActiveConnectionsAJAX.cs | |||
@@ -14,6 +14,7 @@ namespace OpenSim.Region.UserStatistics | |||
14 | { | 14 | { |
15 | #region IStatsController Members | 15 | #region IStatsController Members |
16 | 16 | ||
17 | private Vector3 DefaultNeighborPosition = new Vector3(128, 128, 70); | ||
17 | public Hashtable ProcessModel(Hashtable pParams) | 18 | public Hashtable ProcessModel(Hashtable pParams) |
18 | { | 19 | { |
19 | 20 | ||
@@ -50,10 +51,20 @@ namespace OpenSim.Region.UserStatistics | |||
50 | output.Append(av.Name); | 51 | output.Append(av.Name); |
51 | output.Append(" "); | 52 | output.Append(" "); |
52 | output.Append((av.IsChildAgent ? "Child" : "Root")); | 53 | output.Append((av.IsChildAgent ? "Child" : "Root")); |
53 | 54 | if (av.AbsolutePosition == DefaultNeighborPosition) | |
55 | { | ||
56 | output.Append("<br />Position: ?"); | ||
57 | } | ||
58 | else | ||
59 | { | ||
60 | output.Append(string.Format("<br /><NOBR>Position: <{0},{1},{2}></NOBR>", (int)av.AbsolutePosition.X, | ||
61 | (int) av.AbsolutePosition.Y, | ||
62 | (int) av.AbsolutePosition.Z)); | ||
63 | } | ||
54 | Dictionary<string, int> throttles = DecodeClientThrottles(av.ControllingClient.GetThrottlesPacked(1)); | 64 | Dictionary<string, int> throttles = DecodeClientThrottles(av.ControllingClient.GetThrottlesPacked(1)); |
55 | 65 | ||
56 | HTMLUtil.UL_O(ref output, ""); | 66 | HTMLUtil.UL_O(ref output, ""); |
67 | |||
57 | foreach (string throttlename in throttles.Keys) | 68 | foreach (string throttlename in throttles.Keys) |
58 | { | 69 | { |
59 | HTMLUtil.LI_O(ref output, ""); | 70 | HTMLUtil.LI_O(ref output, ""); |