diff options
author | Teravus Ovares | 2009-01-05 04:09:04 +0000 |
---|---|---|
committer | Teravus Ovares | 2009-01-05 04:09:04 +0000 |
commit | e4a8cc192dd16930718ff18838aa82e6187741bf (patch) | |
tree | a41492dc43a435fcd8a9395fb1f6aff8ae03b702 /OpenSim/Region/UserStatistics/ActiveConnectionsAJAX.cs | |
parent | * Another minor GenericMessage fix - If we assume the method names are case-i... (diff) | |
download | opensim-SC_OLD-e4a8cc192dd16930718ff18838aa82e6187741bf.zip opensim-SC_OLD-e4a8cc192dd16930718ff18838aa82e6187741bf.tar.gz opensim-SC_OLD-e4a8cc192dd16930718ff18838aa82e6187741bf.tar.bz2 opensim-SC_OLD-e4a8cc192dd16930718ff18838aa82e6187741bf.tar.xz |
* Adds an active log to the WebStats console. for an example of it in use as it is right now see http://wmcv.com:9000/SStats/
* It still isn't quite ready to be used mainstream.
* A couple of things to note, it doesn't keep track of the logs if nobody is looking at the stats.
* It doesn't read the whole log file. Just the last 10 lines of the stream. Tested to 1GB+ logfiles with no noticeable performance issues.
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, ""); |