mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* Updates BetaGridLikeMoneyModule
* Several people have asked for a way to limit uploads, so I've decided to show people how to do this in the BetaGridLikeMoneyModule. * Configure it in OpenSim.ini using the [Economy] header. See the bottom of the OpenSim.ini.example for more information. * This also fleshes out the Economy API a bit more.
This commit is contained in:
@@ -100,6 +100,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
private int m_pendingUploads = 0;
|
||||
private int m_activeScripts = 0;
|
||||
private int m_scriptLinesPerSecond = 0;
|
||||
|
||||
private int objectCapacity = 45000;
|
||||
|
||||
|
||||
SimStatsPacket.StatBlock[] sb = new SimStatsPacket.StatBlock[21];
|
||||
@@ -152,7 +154,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
statpack.Region.RegionFlags = (uint) 0;
|
||||
}
|
||||
statpack.Region.ObjectCapacity = (uint) 45000;
|
||||
statpack.Region.ObjectCapacity = (uint) objectCapacity;
|
||||
|
||||
#region various statistic googly moogly
|
||||
|
||||
@@ -389,6 +391,11 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
m_activeScripts = count;
|
||||
}
|
||||
|
||||
public void SetObjectCapacity(int objects)
|
||||
{
|
||||
objectCapacity = objects;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user