* 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.
This commit is contained in:
Teravus Ovares
2009-01-05 04:09:04 +00:00
parent 3b0eb958a8
commit e4a8cc192d
5 changed files with 185 additions and 11 deletions

View File

@@ -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("<br />Position: ?");
}
else
{
output.Append(string.Format("<br /><NOBR>Position: <{0},{1},{2}></NOBR>", (int)av.AbsolutePosition.X,
(int) av.AbsolutePosition.Y,
(int) av.AbsolutePosition.Z));
}
Dictionary<string, int> throttles = DecodeClientThrottles(av.ControllingClient.GetThrottlesPacked(1));
HTMLUtil.UL_O(ref output, "");
foreach (string throttlename in throttles.Keys)
{
HTMLUtil.LI_O(ref output, "");