aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorUbitUmarov2016-11-22 05:18:06 +0000
committerUbitUmarov2016-11-22 05:18:06 +0000
commit4e64445c39c3de1941e071ff32d06702a3440d5d (patch)
treed22dd941e1bb849b525b9d31c9eb3b07f96047bc /OpenSim/Region/Framework/Scenes/Scene.cs
parentchange asset description max size (diff)
downloadopensim-SC_OLD-4e64445c39c3de1941e071ff32d06702a3440d5d.zip
opensim-SC_OLD-4e64445c39c3de1941e071ff32d06702a3440d5d.tar.gz
opensim-SC_OLD-4e64445c39c3de1941e071ff32d06702a3440d5d.tar.bz2
opensim-SC_OLD-4e64445c39c3de1941e071ff32d06702a3440d5d.tar.xz
replace datetime.now on just timming by faster utcnow
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index c349369..09f0b19 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -5454,6 +5454,7 @@ Label_GroupsDone:
5454 5454
5455 public void CleanTempObjects() 5455 public void CleanTempObjects()
5456 { 5456 {
5457 DateTime now = DateTime.UtcNow;
5457 EntityBase[] entities = GetEntities(); 5458 EntityBase[] entities = GetEntities();
5458 foreach (EntityBase obj in entities) 5459 foreach (EntityBase obj in entities)
5459 { 5460 {
@@ -5465,7 +5466,7 @@ Label_GroupsDone:
5465 { 5466 {
5466 if ((grp.RootPart.Flags & PrimFlags.TemporaryOnRez) != 0) 5467 if ((grp.RootPart.Flags & PrimFlags.TemporaryOnRez) != 0)
5467 { 5468 {
5468 if (grp.GetSittingAvatarsCount() == 0 && grp.RootPart.Expires <= DateTime.Now) 5469 if (grp.GetSittingAvatarsCount() == 0 && grp.RootPart.Expires <= now)
5469 DeleteSceneObject(grp, false); 5470 DeleteSceneObject(grp, false);
5470 } 5471 }
5471 } 5472 }