[CMake] Suspicious CPU speed calculation on Mac

Sean McBride sean at rogue-research.com
Sat Oct 23 16:49:24 EDT 2010


On Mon, 18 Oct 2010 14:36:01 +0000, Rolf Eike Beer said:

>While hacking on gathering system information on QNX (currently completely
>missing) I found this in SystemInformationImplementation::ParseSysCtl() in
>source/kwsys/SystemInformation.cxx:
>
>  this->CPUSpeedInMHz = static_cast< float >( value )/ 1048576;
>
>From what I can find on the web the output is in Hz so it should be
>divided by 1000000, no?

I agree, looks like a copy-paste bug.  Indeed, the clock is wrong on our
dashboards, ex:
<http://www.cdash.org/CDash/viewSite.php?
siteid=1987&project=1&currenttime=1287795600>

Will you submit a bug/patch?

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the CMake mailing list