aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/UserStatistics
diff options
context:
space:
mode:
authorJeff Ames2009-06-10 04:28:56 +0000
committerJeff Ames2009-06-10 04:28:56 +0000
commita23d64dec1cbf88abc3c7e84664a683dee534e4a (patch)
tree7e85403f29839775209481ba7f6ee55aac56f209 /OpenSim/Region/UserStatistics
parentLetting the Flotsam cache be enabled even when [AssetCache] section is missin... (diff)
downloadopensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.zip
opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.tar.gz
opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.tar.bz2
opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.tar.xz
Formatting cleanup.
Diffstat (limited to 'OpenSim/Region/UserStatistics')
-rw-r--r--OpenSim/Region/UserStatistics/HTMLUtil.cs19
-rw-r--r--OpenSim/Region/UserStatistics/LogLinesAJAX.cs2
-rw-r--r--OpenSim/Region/UserStatistics/WebStatsModule.cs2
3 files changed, 13 insertions, 10 deletions
diff --git a/OpenSim/Region/UserStatistics/HTMLUtil.cs b/OpenSim/Region/UserStatistics/HTMLUtil.cs
index bd0c74a..c07619f 100644
--- a/OpenSim/Region/UserStatistics/HTMLUtil.cs
+++ b/OpenSim/Region/UserStatistics/HTMLUtil.cs
@@ -43,6 +43,7 @@ namespace OpenSim.Region.UserStatistics
43 } 43 }
44 o.Append(">\n\t"); 44 o.Append(">\n\t");
45 } 45 }
46
46 public static void TR_C(ref StringBuilder o) 47 public static void TR_C(ref StringBuilder o)
47 { 48 {
48 o.Append("</tr>\n"); 49 o.Append("</tr>\n");
@@ -52,6 +53,7 @@ namespace OpenSim.Region.UserStatistics
52 { 53 {
53 TD_O(ref o, pclass, 0, 0); 54 TD_O(ref o, pclass, 0, 0);
54 } 55 }
56
55 public static void TD_O(ref StringBuilder o, string pclass, int rowspan, int colspan) 57 public static void TD_O(ref StringBuilder o, string pclass, int rowspan, int colspan)
56 { 58 {
57 o.Append("<td"); 59 o.Append("<td");
@@ -73,10 +75,12 @@ namespace OpenSim.Region.UserStatistics
73 } 75 }
74 o.Append(">"); 76 o.Append(">");
75 } 77 }
78
76 public static void TD_C(ref StringBuilder o) 79 public static void TD_C(ref StringBuilder o)
77 { 80 {
78 o.Append("</td>"); 81 o.Append("</td>");
79 } 82 }
83
80 public static void TABLE_O(ref StringBuilder o, string pclass) 84 public static void TABLE_O(ref StringBuilder o, string pclass)
81 { 85 {
82 o.Append("<table"); 86 o.Append("<table");
@@ -86,6 +90,7 @@ namespace OpenSim.Region.UserStatistics
86 } 90 }
87 o.Append(">\n\t"); 91 o.Append(">\n\t");
88 } 92 }
93
89 public static void TABLE_C(ref StringBuilder o) 94 public static void TABLE_C(ref StringBuilder o)
90 { 95 {
91 o.Append("</table>\n"); 96 o.Append("</table>\n");
@@ -208,24 +213,22 @@ namespace OpenSim.Region.UserStatistics
208 }); 213 });
209 // ]]> 214 // ]]>
210 </script>"); 215 </script>");
211
212 } 216 }
213 217
214 public static void HtmlHeaders_O ( ref StringBuilder o) 218 public static void HtmlHeaders_O(ref StringBuilder o)
215 { 219 {
216 o.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"); 220 o.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
217 o.Append("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl\">"); 221 o.Append("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl\">");
218 o.Append("<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />"); 222 o.Append("<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />");
219
220
221 } 223 }
222 public static void HtmlHeaders_C ( ref StringBuilder o) 224
225 public static void HtmlHeaders_C(ref StringBuilder o)
223 { 226 {
224 o.Append("</HEAD>"); 227 o.Append("</HEAD>");
225 o.Append("<BODY>"); 228 o.Append("<BODY>");
226 } 229 }
227 230
228 public static void AddReportLinks( ref StringBuilder o, Dictionary<string, IStatsController> reports, string pClass) 231 public static void AddReportLinks(ref StringBuilder o, Dictionary<string, IStatsController> reports, string pClass)
229 { 232 {
230 int repcount = 0; 233 int repcount = 0;
231 foreach (string str in reports.Keys) 234 foreach (string str in reports.Keys)
@@ -242,7 +245,8 @@ namespace OpenSim.Region.UserStatistics
242 } 245 }
243 } 246 }
244 } 247 }
245 public static void A( ref StringBuilder o, string linktext, string linkhref, string pClass) 248
249 public static void A(ref StringBuilder o, string linktext, string linkhref, string pClass)
246 { 250 {
247 o.Append("<A"); 251 o.Append("<A");
248 if (pClass.Length > 0) 252 if (pClass.Length > 0)
@@ -254,7 +258,6 @@ namespace OpenSim.Region.UserStatistics
254 o.Append("\">"); 258 o.Append("\">");
255 o.Append(linktext); 259 o.Append(linktext);
256 o.Append("</A>"); 260 o.Append("</A>");
257
258 } 261 }
259 } 262 }
260} 263}
diff --git a/OpenSim/Region/UserStatistics/LogLinesAJAX.cs b/OpenSim/Region/UserStatistics/LogLinesAJAX.cs
index 85d2e03..811baba 100644
--- a/OpenSim/Region/UserStatistics/LogLinesAJAX.cs
+++ b/OpenSim/Region/UserStatistics/LogLinesAJAX.cs
@@ -76,7 +76,7 @@ namespace OpenSim.Region.UserStatistics
76 string formatopen = ""; 76 string formatopen = "";
77 string formatclose = ""; 77 string formatclose = "";
78 78
79 for (int i = 0; i < result.Length;i++ ) 79 for (int i = 0; i < result.Length; i++)
80 { 80 {
81 if (result[i].Length >= 30) 81 if (result[i].Length >= 30)
82 { 82 {
diff --git a/OpenSim/Region/UserStatistics/WebStatsModule.cs b/OpenSim/Region/UserStatistics/WebStatsModule.cs
index 715d295..e383e71 100644
--- a/OpenSim/Region/UserStatistics/WebStatsModule.cs
+++ b/OpenSim/Region/UserStatistics/WebStatsModule.cs
@@ -398,7 +398,7 @@ namespace OpenSim.Region.UserStatistics
398 398
399 } 399 }
400 400
401 public string readLogLines( int amount) 401 public string readLogLines(int amount)
402 { 402 {
403 Encoding encoding = Encoding.ASCII; 403 Encoding encoding = Encoding.ASCII;
404 int sizeOfChar = encoding.GetByteCount("\n"); 404 int sizeOfChar = encoding.GetByteCount("\n");