VirtualBox

Ignore:
Timestamp:
Dec 15, 2013 7:00:52 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91294
Message:

FE/Qt: GetProcessorCount() => GetProcessorOnlineCoreCount() when drawing the colors in the CPU settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp

    r48765 r49912  
    661661    /* Load configuration: */
    662662    CSystemProperties properties = vboxGlobal().virtualBox().GetSystemProperties();
    663     uint hostCPUs = vboxGlobal().host().GetProcessorCount();
     663    uint hostCPUs = vboxGlobal().host().GetProcessorOnlineCoreCount();
    664664    m_uMinGuestCPU = properties.GetMinGuestCPUCount();
    665665    m_uMaxGuestCPU = qMin(2 * hostCPUs, (uint)properties.GetMaxGuestCPUCount());
Note: See TracChangeset for help on using the changeset viewer.

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