VirtualBox

Changeset 11708 in vbox for trunk/src/VBox/Runtime/r3/darwin


Ignore:
Timestamp:
Aug 27, 2008 3:01:37 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35440
Message:

Fix for huge MHz numbers reported by list hostinfo on darwin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette