summaryrefslogtreecommitdiff
path: root/indra/llcommon/llfasttimer_class.cpp
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-06-18 14:08:46 +0300
committerVadim Savchuk <vsavchuk@productengine.com>2010-06-18 14:08:46 +0300
commita8276dfd5998a7ef86668d7a8e3f9e8a7d124801 (patch)
treeedb2169b848d848d834fe6e418c397c10c89a5ff /indra/llcommon/llfasttimer_class.cpp
parent9aa710945685a2cae8cfc622f3dc3d900c1ab4c9 (diff)
parentcb50a2395bc37f1f7833171a976f67af9f2df66d (diff)
Merge from default branch
--HG-- branch : product-engine
Diffstat (limited to 'indra/llcommon/llfasttimer_class.cpp')
-rw-r--r--indra/llcommon/llfasttimer_class.cpp3
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;