VirtualBox

Changeset 11708

Show
Ignore:
Timestamp:
08/27/08 17:01:37 (3 months ago)
Author:
vboxsync
Message:

Fix for huge MHz numbers reported by list hostinfo on darwin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Runtime/r3/darwin/mp-darwin.cpp

    r10616 r11708  
    171171    int rc = sysctlbyname("hw.cpufrequency_max", &CpuFrequencyMax, &cb, NULL, 0); 
    172172    if (!rc) 
    173         return CpuFrequencyMax + 999999 / 1000000; 
     173        return (CpuFrequencyMax + 999999) / 1000000; 
    174174 
    175175    /* 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy