Correct issue where the last instance of a sampled stat was shown 3x larger than it should have been (though internal use was correct)

TeleportWork
Justin Clark-Casey (justincc) 2013-07-23 23:31:35 +01:00
parent 76e46d0158
commit 9a4a513b5e
1 changed files with 2 additions and 1 deletions

View File

@ -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;