Linden text version 2
{
LLEmbeddedItems version 1
{
count 0
}
Text length 2428
4Freedom Satistics

The three object below are three statistics generator. The three stat generator uses slightly different technics to gather the  Region wide statistics

///gimisa 110830 gimisa@yahoo.fr


The regionStat OS is  using osGetAgents() which provide avatar name present  on the region. This function permit a direct comparison between one minute time check to validate how many avatar are present in that period. 

Alternative the list Stat is using SecondLife LSL llGetRegionAvatarCount. 
This function provide a count only. It can be use to know how many people are present in one period but cannot distinguish if these are new visitors. So it can count visits  rather then avatar on the sim. 

Both those object uses lists to present rolling statistic on 30 days and cumulative value for total rez  time of the object. 
The information is also store in object link prims to retain 30 days history and since start values because of OSGrid instability.  For this reason simply copying the  Stat object will not reset the stat to 0. To do so one must use the OSDataStore function with channel   /357.  If I have a demand I could be more sofisticated and put  a  reset button for the owner only. 

The third object is RegionStat STD. It provides cumulative stats only with no history. The accumulators are reset at each end of month except for some taly value for the total rez period of the object. 

The graph is actually manually produce as the information of the stat object  is keep localy. 
This might be better for people that dont want to send there data out to an unknow server. 
So the graph is cut past of the history data  produce  by typing  /335 in chat channel.  The graph is produce using opent office calc the from www.opensim.org. 



this is stil experimental so the script are not yet release. 
To be corrected in release is:

1) major failure  distroyed the history data

>> implemented store history data in prim name 

2) uptime information. 
>> OSGrid crash often statistic shall be corrected for downtime 
>> implemented downtime  as 0 days values 

3)  os get agent and lsl count agent function does not detect same quantity of agents . Use osgetagent in osGrid stat object. 

4) / bug in  the list sum statistic  functions

 >> the bug is that the last element of the list is not considered for sum stat. 


Project
if there is interest it might be possible to do the gragh with a server. }
 