diff options
author | onefang | 2019-09-11 16:36:50 +1000 |
---|---|---|
committer | onefang | 2019-09-11 16:36:50 +1000 |
commit | 50cd1ffd32f69228e566f2b0b89f86ea0d9fe489 (patch) | |
tree | 52f2ab0c04f1a5d7d6ac5dc872981b4b156447e7 /OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs | |
parent | Renamed branch to SledjChisl. (diff) | |
parent | Bump to release flavour, build 0. (diff) | |
download | opensim-SC_OLD-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.zip opensim-SC_OLD-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.gz opensim-SC_OLD-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.bz2 opensim-SC_OLD-50cd1ffd32f69228e566f2b0b89f86ea0d9fe489.tar.xz |
Merge branch 'SledjChisl'
Diffstat (limited to 'OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs b/OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs index 0e94912..8d5434f 100644 --- a/OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs +++ b/OpenSim/Region/OptionalModules/UserStatistics/Sessions_Report.cs | |||
@@ -52,7 +52,7 @@ namespace OpenSim.Region.UserStatistics | |||
52 | SqliteConnection dbConn = (SqliteConnection)pParams["DatabaseConnection"]; | 52 | SqliteConnection dbConn = (SqliteConnection)pParams["DatabaseConnection"]; |
53 | List<SessionList> lstSessions = new List<SessionList>(); | 53 | List<SessionList> lstSessions = new List<SessionList>(); |
54 | Hashtable requestvars = (Hashtable) pParams["RequestVars"]; | 54 | Hashtable requestvars = (Hashtable) pParams["RequestVars"]; |
55 | 55 | ||
56 | 56 | ||
57 | string puserUUID = string.Empty; | 57 | string puserUUID = string.Empty; |
58 | string clientVersionString = string.Empty; | 58 | string clientVersionString = string.Empty; |
@@ -113,7 +113,7 @@ namespace OpenSim.Region.UserStatistics | |||
113 | cmd.Parameters.Add(new SqliteParameter(":client_version", clientVersionString)); | 113 | cmd.Parameters.Add(new SqliteParameter(":client_version", clientVersionString)); |
114 | 114 | ||
115 | SqliteDataReader sdr = cmd.ExecuteReader(); | 115 | SqliteDataReader sdr = cmd.ExecuteReader(); |
116 | 116 | ||
117 | if (sdr.HasRows) | 117 | if (sdr.HasRows) |
118 | { | 118 | { |
119 | UUID userUUID = UUID.Zero; | 119 | UUID userUUID = UUID.Zero; |
@@ -134,7 +134,7 @@ namespace OpenSim.Region.UserStatistics | |||
134 | } | 134 | } |
135 | 135 | ||
136 | ShortSessionData ssd = new ShortSessionData(); | 136 | ShortSessionData ssd = new ShortSessionData(); |
137 | 137 | ||
138 | ssd.last_update = Utils.UnixTimeToDateTime((uint)Convert.ToInt32(sdr["last_updated"])); | 138 | ssd.last_update = Utils.UnixTimeToDateTime((uint)Convert.ToInt32(sdr["last_updated"])); |
139 | ssd.start_time = Utils.UnixTimeToDateTime((uint)Convert.ToInt32(sdr["start_time"])); | 139 | ssd.start_time = Utils.UnixTimeToDateTime((uint)Convert.ToInt32(sdr["start_time"])); |
140 | ssd.session_id = UUID.Parse(sdr["session_id"].ToString()); | 140 | ssd.session_id = UUID.Parse(sdr["session_id"].ToString()); |
@@ -145,8 +145,7 @@ namespace OpenSim.Region.UserStatistics | |||
145 | } | 145 | } |
146 | } | 146 | } |
147 | sdr.Close(); | 147 | sdr.Close(); |
148 | sdr.Dispose(); | 148 | cmd.Dispose(); |
149 | |||
150 | } | 149 | } |
151 | modeldata["SessionData"] = lstSessions; | 150 | modeldata["SessionData"] = lstSessions; |
152 | return modeldata; | 151 | return modeldata; |
@@ -249,7 +248,7 @@ TD.align_top { vertical-align: top; } | |||
249 | output.Append(sesdata.client_version); | 248 | output.Append(sesdata.client_version); |
250 | HTMLUtil.TD_C(ref output); | 249 | HTMLUtil.TD_C(ref output); |
251 | HTMLUtil.TR_C(ref output); | 250 | HTMLUtil.TR_C(ref output); |
252 | 251 | ||
253 | } | 252 | } |
254 | HTMLUtil.TR_O(ref output, ""); | 253 | HTMLUtil.TR_O(ref output, ""); |
255 | HTMLUtil.TD_O(ref output, "align_top", 1, 5); | 254 | HTMLUtil.TD_O(ref output, "align_top", 1, 5); |