diff options
author | Justin Clark-Casey (justincc) | 2013-07-23 23:31:35 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-07-23 23:31:35 +0100 |
commit | 9a4a513b5e4e2496b32113dcffbeeae776eabb89 (patch) | |
tree | 50b10c36d6c86d8bfa7d1b5d55badb20ded1e95e | |
parent | Improve spacing between data and units on console stats display (diff) | |
download | opensim-SC-9a4a513b5e4e2496b32113dcffbeeae776eabb89.zip opensim-SC-9a4a513b5e4e2496b32113dcffbeeae776eabb89.tar.gz opensim-SC-9a4a513b5e4e2496b32113dcffbeeae776eabb89.tar.bz2 opensim-SC-9a4a513b5e4e2496b32113dcffbeeae776eabb89.tar.xz |
Correct issue where the last instance of a sampled stat was shown 3x larger than it should have been (though internal use was correct)
-rw-r--r-- | OpenSim/Framework/Monitoring/Stats/Stat.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Monitoring/Stats/Stat.cs b/OpenSim/Framework/Monitoring/Stats/Stat.cs index f2329ce..ffd5132 100644 --- a/OpenSim/Framework/Monitoring/Stats/Stat.cs +++ b/OpenSim/Framework/Monitoring/Stats/Stat.cs | |||
@@ -280,7 +280,8 @@ namespace OpenSim.Framework.Monitoring | |||
280 | } | 280 | } |
281 | 281 | ||
282 | if (lastSample != null && penultimateSample != null) | 282 | if (lastSample != null && penultimateSample != null) |
283 | lastChangeOverTime = (double)lastSample - (double)penultimateSample; | 283 | lastChangeOverTime |
284 | = ((double)lastSample - (double)penultimateSample) / (Watchdog.WATCHDOG_INTERVAL_MS / 1000); | ||
284 | 285 | ||
285 | int divisor = m_samples.Count <= 1 ? 1 : m_samples.Count - 1; | 286 | int divisor = m_samples.Count <= 1 ? 1 : m_samples.Count - 1; |
286 | 287 | ||