diff options
author | Justin Clark-Casey (justincc) | 2012-03-16 01:46:21 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-19 21:32:02 +0000 |
commit | 4e5f82359523fb724b0f383c1afc0afca690adfa (patch) | |
tree | fbd7709b8853c16c600697ef0a0510835e297879 /OpenSim | |
parent | Aggregate script execution times by linksets rather than individual prims. (diff) | |
download | opensim-SC_OLD-4e5f82359523fb724b0f383c1afc0afca690adfa.zip opensim-SC_OLD-4e5f82359523fb724b0f383c1afc0afca690adfa.tar.gz opensim-SC_OLD-4e5f82359523fb724b0f383c1afc0afca690adfa.tar.bz2 opensim-SC_OLD-4e5f82359523fb724b0f383c1afc0afca690adfa.tar.xz |
In Top Scripts report, don't show scripts with no or less than 1 microsecond of execution time.
This is to make the report clearer and less confusing.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 1492861..61d604f 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -904,9 +904,15 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
904 | 904 | ||
905 | foreach (var entry in sortedSceneData) | 905 | foreach (var entry in sortedSceneData) |
906 | { | 906 | { |
907 | // The object may have been deleted since we received the data. | ||
907 | if (entry.Part == null) | 908 | if (entry.Part == null) |
908 | continue; | 909 | continue; |
909 | 910 | ||
911 | // Don't show scripts that haven't executed or where execution time is below one microsecond in | ||
912 | // order to produce a more readable report. | ||
913 | if (entry.Measurement < 0.001) | ||
914 | continue; | ||
915 | |||
910 | items++; | 916 | items++; |
911 | SceneObjectGroup so = entry.Part.ParentGroup; | 917 | SceneObjectGroup so = entry.Part.ParentGroup; |
912 | 918 | ||