aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rwxr-xr-xOpenSim/Region/ScriptEngine/XEngine/XEngine.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index e5e5698..ae02877 100755
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -2384,7 +2384,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
2384 2384
2385 private float CalculateAdjustedExectionTime(IScriptInstance si, long tickNow) 2385 private float CalculateAdjustedExectionTime(IScriptInstance si, long tickNow)
2386 { 2386 {
2387 long ticksElapsed = tickNow - si.MeasurementPeriodTickStart; 2387 long ticksElapsed = Util.EnvironmentTickCountSubtract((int)tickNow, (int)si.MeasurementPeriodTickStart);
2388 2388
2389 // Avoid divide by zero 2389 // Avoid divide by zero
2390 if (ticksElapsed == 0) 2390 if (ticksElapsed == 0)