aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-07-23 23:31:35 +0100
committerJustin Clark-Casey (justincc)2013-07-23 23:31:35 +0100
commit9a4a513b5e4e2496b32113dcffbeeae776eabb89 (patch)
tree50b10c36d6c86d8bfa7d1b5d55badb20ded1e95e
parentImprove spacing between data and units on console stats display (diff)
downloadopensim-SC_OLD-9a4a513b5e4e2496b32113dcffbeeae776eabb89.zip
opensim-SC_OLD-9a4a513b5e4e2496b32113dcffbeeae776eabb89.tar.gz
opensim-SC_OLD-9a4a513b5e4e2496b32113dcffbeeae776eabb89.tar.bz2
opensim-SC_OLD-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.cs3
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