aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/UserStatistics/Default_Report.cs
diff options
context:
space:
mode:
authorTeravus Ovares2009-01-05 04:09:04 +0000
committerTeravus Ovares2009-01-05 04:09:04 +0000
commite4a8cc192dd16930718ff18838aa82e6187741bf (patch)
treea41492dc43a435fcd8a9395fb1f6aff8ae03b702 /OpenSim/Region/UserStatistics/Default_Report.cs
parent* Another minor GenericMessage fix - If we assume the method names are case-i... (diff)
downloadopensim-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/Default_Report.cs')
-rw-r--r--OpenSim/Region/UserStatistics/Default_Report.cs16
1 files changed, 10 insertions, 6 deletions
diff --git a/OpenSim/Region/UserStatistics/Default_Report.cs b/OpenSim/Region/UserStatistics/Default_Report.cs
index 02b15ad..eac4a7e 100644
--- a/OpenSim/Region/UserStatistics/Default_Report.cs
+++ b/OpenSim/Region/UserStatistics/Default_Report.cs
@@ -76,9 +76,9 @@ TD.align_top { vertical-align: top; }
76 HTMLUtil.HtmlHeaders_O(ref output); 76 HTMLUtil.HtmlHeaders_O(ref output);
77 77
78 HTMLUtil.InsertProtoTypeAJAX(ref output); 78 HTMLUtil.InsertProtoTypeAJAX(ref output);
79 string[] ajaxUpdaterDivs = new string[2]; 79 string[] ajaxUpdaterDivs = new string[3];
80 int[] ajaxUpdaterSeconds = new int[2]; 80 int[] ajaxUpdaterSeconds = new int[3];
81 string[] ajaxUpdaterReportFragments = new string[2]; 81 string[] ajaxUpdaterReportFragments = new string[3];
82 82
83 ajaxUpdaterDivs[0] = "activeconnections"; 83 ajaxUpdaterDivs[0] = "activeconnections";
84 ajaxUpdaterSeconds[0] = 10; 84 ajaxUpdaterSeconds[0] = 10;
@@ -88,6 +88,10 @@ TD.align_top { vertical-align: top; }
88 ajaxUpdaterSeconds[1] = 20; 88 ajaxUpdaterSeconds[1] = 20;
89 ajaxUpdaterReportFragments[1] = "simstatsajax.ajax"; 89 ajaxUpdaterReportFragments[1] = "simstatsajax.ajax";
90 90
91 ajaxUpdaterDivs[2] = "activelog";
92 ajaxUpdaterSeconds[2] = 5;
93 ajaxUpdaterReportFragments[2] = "activelogajax.ajax";
94
91 HTMLUtil.InsertPeriodicUpdaters(ref output, ajaxUpdaterDivs, ajaxUpdaterSeconds, ajaxUpdaterReportFragments); 95 HTMLUtil.InsertPeriodicUpdaters(ref output, ajaxUpdaterDivs, ajaxUpdaterSeconds, ajaxUpdaterReportFragments);
92 96
93 output.Append(STYLESHEET); 97 output.Append(STYLESHEET);
@@ -152,11 +156,11 @@ TD.align_top { vertical-align: top; }
152 HTMLUtil.TABLE_O(ref output, ""); 156 HTMLUtil.TABLE_O(ref output, "");
153 HTMLUtil.TR_O(ref output, ""); 157 HTMLUtil.TR_O(ref output, "");
154 HTMLUtil.TD_O(ref output, "align_top"); 158 HTMLUtil.TD_O(ref output, "align_top");
155 output.Append("<DIV id=\"activeconnections\">loading...</DIV>"); 159 output.Append("<DIV id=\"activeconnections\">Active Connections loading...</DIV>");
156 HTMLUtil.TD_C(ref output); 160 HTMLUtil.TD_C(ref output);
157 HTMLUtil.TD_O(ref output, "align_top"); 161 HTMLUtil.TD_O(ref output, "align_top");
158 output.Append("<DIV id=\"activesimstats\">loading...</DIV>"); 162 output.Append("<DIV id=\"activesimstats\">SimStats loading...</DIV>");
159 163 output.Append("<DIV id=\"activelog\">ActiveLog loading...</DIV>");
160 HTMLUtil.TD_C(ref output); 164 HTMLUtil.TD_C(ref output);
161 HTMLUtil.TR_C(ref output); 165 HTMLUtil.TR_C(ref output);
162 HTMLUtil.TABLE_C(ref output); 166 HTMLUtil.TABLE_C(ref output);