VirtualBox

Changeset 62599 in vbox


Ignore:
Timestamp:
Jul 27, 2016 2:45:28 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109168
Message:

FE/Qt: bugref:7312: Rework session-information window: show VM uptime provided by the API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationDataItem.cpp

    r62365 r62599  
    670670            }
    671671
    672             /* Calculate uptime: */
    673             uint32_t uUpSecs = (RTTimeProgramSecTS() / 5) * 5;
     672            /* Determine uptime: */
     673            CMachineDebugger debugger = m_console.GetDebugger();
     674            uint32_t uUpSecs = (debugger.GetUptime() / 5000) * 5;
    674675            char szUptime[32];
    675676            uint32_t uUpDays = uUpSecs / (60 * 60 * 24);
     
    688689            QString strDnDMode = gpConverter->toString(m_machine.GetDnDMode());
    689690
    690             /* Deterine virtualization attributes: */
    691             CMachineDebugger debugger = m_console.GetDebugger();
     691            /* Determine virtualization attributes: */
    692692            QString strVirtualization = debugger.GetHWVirtExEnabled() ?
    693693                                        VBoxGlobal::tr("Active", "details report (VT-x/AMD-V)") :
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