diff options
author | Dave Parks <davep@lindenlab.com> | 2010-06-17 12:44:23 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-06-17 12:44:23 -0500 |
commit | 1cd299ec8b2eebcf9845b36ab256a4ff82597434 (patch) | |
tree | b1e5bc1a1fa5bff042da917ce465d370c405544b | |
parent | 1c15d18175782f5afee9377af3f0b4ca9e2a4db8 (diff) |
Fix fast timer view showing incorrect units.
-rw-r--r-- | indra/llcommon/llfasttimer_class.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llcommon/llfasttimer_class.cpp b/indra/llcommon/llfasttimer_class.cpp index 20727dd76e..dfbae09864 100644 --- a/indra/llcommon/llfasttimer_class.cpp +++ b/indra/llcommon/llfasttimer_class.cpp @@ -238,7 +238,8 @@ U64 LLFastTimer::countsPerSecond() // counts per second for the *32-bit* timer #else // windows or x86-mac or x86-linux or x86-solaris U64 LLFastTimer::countsPerSecond() // counts per second for the *32-bit* timer { - static U64 sCPUClockFrequency = U64(LLProcessorInfo().getCPUFrequency()); + //getCPUFrequency returns MHz and sCPUClockFrequency wants to be in Hz + static U64 sCPUClockFrequency = U64(LLProcessorInfo().getCPUFrequency()*1000000.0); // we drop the low-order byte in our timers, so report a lower frequency return sCPUClockFrequency >> 8; |