From e4a8cc192dd16930718ff18838aa82e6187741bf Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 5 Jan 2009 04:09:04 +0000 Subject: * 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. --- OpenSim/Region/UserStatistics/ActiveConnectionsAJAX.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/UserStatistics/ActiveConnectionsAJAX.cs') 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 { #region IStatsController Members + private Vector3 DefaultNeighborPosition = new Vector3(128, 128, 70); public Hashtable ProcessModel(Hashtable pParams) { @@ -50,10 +51,20 @@ namespace OpenSim.Region.UserStatistics output.Append(av.Name); output.Append("      "); output.Append((av.IsChildAgent ? "Child" : "Root")); - + if (av.AbsolutePosition == DefaultNeighborPosition) + { + output.Append("
Position: ?"); + } + else + { + output.Append(string.Format("
Position: <{0},{1},{2}>", (int)av.AbsolutePosition.X, + (int) av.AbsolutePosition.Y, + (int) av.AbsolutePosition.Z)); + } Dictionary throttles = DecodeClientThrottles(av.ControllingClient.GetThrottlesPacked(1)); HTMLUtil.UL_O(ref output, ""); + foreach (string throttlename in throttles.Keys) { HTMLUtil.LI_O(ref output, ""); -- cgit v1.1