mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
Correct issue where the last instance of a sampled stat was shown 3x larger than it should have been (though internal use was correct)
This commit is contained in:
@@ -280,7 +280,8 @@ namespace OpenSim.Framework.Monitoring
|
||||
}
|
||||
|
||||
if (lastSample != null && penultimateSample != null)
|
||||
lastChangeOverTime = (double)lastSample - (double)penultimateSample;
|
||||
lastChangeOverTime
|
||||
= ((double)lastSample - (double)penultimateSample) / (Watchdog.WATCHDOG_INTERVAL_MS / 1000);
|
||||
|
||||
int divisor = m_samples.Count <= 1 ? 1 : m_samples.Count - 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user