VirtualBox

Changeset 85410 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 22, 2020 10:02:46 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139449
Message:

FE/Qt: bugref:9686, bugref:9510. Resetting info labels upon machine change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/monitor/performance/UIPerformanceMonitor.cpp

    r85406 r85410  
    12471247    if (m_pTimer)
    12481248        m_pTimer->stop();
     1249    /* reset the metrics. this will delete their data cache: */
    12491250    for (QMap<QString, UIMetric>::iterator iterator =  m_metrics.begin();
    12501251         iterator != m_metrics.end(); ++iterator)
    12511252        iterator.value().reset();
     1253    /* force update on the charts to draw now emptied metrics' data: */
    12521254    for (QMap<QString, UIChart*>::iterator iterator =  m_charts.begin();
    12531255         iterator != m_charts.end(); ++iterator)
    12541256        iterator.value()->update();
     1257    /* Reset the info labels: */
     1258    updateRAMGraphsAndMetric(0, 0);
     1259    updateCPUGraphsAndMetric(0, 0);
     1260    updateNetworkGraphsAndMetric(0, 0);
     1261    updateDiskIOGraphsAndMetric(0, 0);
     1262    updateVMExitMetric(0);
    12551263}
    12561264
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