diff options
author | Teravus Ovares | 2009-01-03 03:30:03 +0000 |
---|---|---|
committer | Teravus Ovares | 2009-01-03 03:30:03 +0000 |
commit | e9cef70f892bfbf4aad0e4471a958367766d849a (patch) | |
tree | 397e078977b430526a2f04041e0dfb9a5fb99156 /OpenSim/Region/UserStatistics/Updater_distributor.cs | |
parent | Split agent updates into two messages: full update and position+camera update... (diff) | |
download | opensim-SC-e9cef70f892bfbf4aad0e4471a958367766d849a.zip opensim-SC-e9cef70f892bfbf4aad0e4471a958367766d849a.tar.gz opensim-SC-e9cef70f892bfbf4aad0e4471a958367766d849a.tar.bz2 opensim-SC-e9cef70f892bfbf4aad0e4471a958367766d849a.tar.xz |
* Updates the sim stats module. Cleans out some of the rot.
* Adds a prototype web stats module which is disabled by default. It's functional with one report right now, however, the database structure may change, so I don't recommend enabling this to keep actual stats right now. I'll let you know when it's safe.
* Adds Prototype for ajaxy web content
* removed a warning or two.
Diffstat (limited to 'OpenSim/Region/UserStatistics/Updater_distributor.cs')
-rw-r--r-- | OpenSim/Region/UserStatistics/Updater_distributor.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/OpenSim/Region/UserStatistics/Updater_distributor.cs b/OpenSim/Region/UserStatistics/Updater_distributor.cs new file mode 100644 index 0000000..4d571fa --- /dev/null +++ b/OpenSim/Region/UserStatistics/Updater_distributor.cs | |||
@@ -0,0 +1,35 @@ | |||
1 | using System; | ||
2 | using System.IO; | ||
3 | using System.Collections; | ||
4 | using System.Collections.Generic; | ||
5 | using System.Text; | ||
6 | using OpenSim.Framework; | ||
7 | |||
8 | namespace OpenSim.Region.UserStatistics | ||
9 | { | ||
10 | public class Updater_distributor : IStatsController | ||
11 | { | ||
12 | private string updaterjs = string.Empty; | ||
13 | |||
14 | |||
15 | public Hashtable ProcessModel(Hashtable pParams) | ||
16 | { | ||
17 | Hashtable pResult = new Hashtable(); | ||
18 | if (updaterjs.Length == 0) | ||
19 | { | ||
20 | StreamReader fs = new StreamReader(new FileStream(Util.dataDir() + "/data/updater.js", FileMode.Open)); | ||
21 | updaterjs = fs.ReadToEnd(); | ||
22 | fs.Close(); | ||
23 | fs.Dispose(); | ||
24 | } | ||
25 | pResult["js"] = updaterjs; | ||
26 | return pResult; | ||
27 | } | ||
28 | |||
29 | public string RenderView(Hashtable pModelResult) | ||
30 | { | ||
31 | return pModelResult["js"].ToString(); | ||
32 | } | ||
33 | |||
34 | } | ||
35 | } \ No newline at end of file | ||