aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/UserStatistics/Default_Report.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/UserStatistics/Default_Report.cs')
-rw-r--r--OpenSim/Region/UserStatistics/Default_Report.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/UserStatistics/Default_Report.cs b/OpenSim/Region/UserStatistics/Default_Report.cs
index 5d4cfc0..55cb454 100644
--- a/OpenSim/Region/UserStatistics/Default_Report.cs
+++ b/OpenSim/Region/UserStatistics/Default_Report.cs
@@ -41,9 +41,9 @@ namespace OpenSim.Region.UserStatistics
41 public class Default_Report : IStatsController 41 public class Default_Report : IStatsController
42 { 42 {
43 43
44 public Default_Report() 44 public string ReportName
45 { 45 {
46 46 get { return "Home"; }
47 } 47 }
48 48
49 #region IStatsController Members 49 #region IStatsController Members
@@ -55,9 +55,11 @@ namespace OpenSim.Region.UserStatistics
55 55
56 stats_default_page_values mData = rep_DefaultReport_data(conn, m_scene); 56 stats_default_page_values mData = rep_DefaultReport_data(conn, m_scene);
57 mData.sim_stat_data = (Dictionary<UUID,USimStatsData>)pParams["SimStats"]; 57 mData.sim_stat_data = (Dictionary<UUID,USimStatsData>)pParams["SimStats"];
58 mData.stats_reports = (Dictionary<string, IStatsController>) pParams["Reports"];
58 59
59 Hashtable nh = new Hashtable(); 60 Hashtable nh = new Hashtable();
60 nh.Add("hdata", mData); 61 nh.Add("hdata", mData);
62 nh.Add("Reports", pParams["Reports"]);
61 63
62 return nh; 64 return nh;
63 } 65 }
@@ -73,6 +75,7 @@ namespace OpenSim.Region.UserStatistics
73 public string rep_Default_report_view(stats_default_page_values values) 75 public string rep_Default_report_view(stats_default_page_values values)
74 { 76 {
75 77
78
76 StringBuilder output = new StringBuilder(); 79 StringBuilder output = new StringBuilder();
77 80
78 81
@@ -123,7 +126,7 @@ TD.align_top { vertical-align: top; }
123 126
124 output.Append(STYLESHEET); 127 output.Append(STYLESHEET);
125 HTMLUtil.HtmlHeaders_C(ref output); 128 HTMLUtil.HtmlHeaders_C(ref output);
126 129 HTMLUtil.AddReportLinks(ref output, values.stats_reports, "");
127 HTMLUtil.TABLE_O(ref output, TableClass); 130 HTMLUtil.TABLE_O(ref output, TableClass);
128 HTMLUtil.TR_O(ref output, TRClass); 131 HTMLUtil.TR_O(ref output, TRClass);
129 HTMLUtil.TD_O(ref output, TDHeaderClass); 132 HTMLUtil.TD_O(ref output, TDHeaderClass);
@@ -242,5 +245,6 @@ TD.align_top { vertical-align: top; }
242 public float avg_client_resends; 245 public float avg_client_resends;
243 public Scene[] all_scenes; 246 public Scene[] all_scenes;
244 public Dictionary<UUID, USimStatsData> sim_stat_data; 247 public Dictionary<UUID, USimStatsData> sim_stat_data;
248 public Dictionary<string, IStatsController> stats_reports;
245 } 249 }
246} 250}