diff options
author | UbitUmarov | 2016-11-22 05:18:06 +0000 |
---|---|---|
committer | UbitUmarov | 2016-11-22 05:18:06 +0000 |
commit | 4e64445c39c3de1941e071ff32d06702a3440d5d (patch) | |
tree | d22dd941e1bb849b525b9d31c9eb3b07f96047bc /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | change asset description max size (diff) | |
download | opensim-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-x | OpenSim/Region/Framework/Scenes/Scene.cs | 3 |
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 | } |