Fixed mistakes related to confusion between Environment.TickCount (milliseconds) and TimeSpan.TicksPerXXX (10000 x milliseconds)
parent
4c6fb9fb64
commit
20af31f18e
|
@ -180,9 +180,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
scene.Name,
|
scene.Name,
|
||||||
StatType.Pull,
|
StatType.Pull,
|
||||||
MeasuresOfInterest.None,
|
MeasuresOfInterest.None,
|
||||||
stat => stat.Value = m_udpServer.AverageReceiveTicksForLastSamplePeriod / TimeSpan.TicksPerMillisecond,
|
stat => stat.Value = m_udpServer.AverageReceiveTicksForLastSamplePeriod,
|
||||||
// stat =>
|
// stat =>
|
||||||
// stat.Value = Math.Round(m_udpServer.AverageReceiveTicksForLastSamplePeriod / TimeSpan.TicksPerMillisecond, 7),
|
// stat.Value = Math.Round(m_udpServer.AverageReceiveTicksForLastSamplePeriod, 7),
|
||||||
StatVerbosity.Debug));
|
StatVerbosity.Debug));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -202,7 +202,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
|
|
||||||
public long MeasurementPeriodExecutionTime { get; private set; }
|
public long MeasurementPeriodExecutionTime { get; private set; }
|
||||||
|
|
||||||
public static readonly long MaxMeasurementPeriod = 30 * TimeSpan.TicksPerMinute;
|
public static readonly long MaxMeasurementPeriod = 30 * (TimeSpan.TicksPerMinute / TimeSpan.TicksPerMillisecond);
|
||||||
|
|
||||||
private bool m_coopTermination;
|
private bool m_coopTermination;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue