Changeset 102747 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jan 3, 2024 11:21:33 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitor.cpp
r102746 r102747 1752 1752 { 1753 1753 QString strInfo; 1754 strInfo = QString("<b>%1</b>< /b><br/>%2: %3 %4<br/>%5: %6 %7")1754 strInfo = QString("<b>%1</b><br/><font color=\"%2\">%3: %4 %5</font><br/>%6: %7 %8") 1755 1755 .arg(m_strVMExitInfoLabelTitle) 1756 .arg( m_strVMExitLabelCurrent).arg(UITranslator::addMetricSuffixToNumber(iRate)).arg(VMExitMetric.unit())1756 .arg(dataColorString(m_strCPUMetricName, 0)).arg(m_strVMExitLabelCurrent).arg(UITranslator::addMetricSuffixToNumber(iRate)).arg(VMExitMetric.unit()) 1757 1757 .arg(m_strVMExitLabelTotal).arg(UITranslator::addMetricSuffixToNumber(uTotalVMExits)).arg(VMExitMetric.unit()); 1758 1758 m_infoLabels[m_strVMExitMetricName]->setText(strInfo); … … 1793 1793 { 1794 1794 QString strInfo; 1795 strInfo = QString("<b>%1</b><br/>%2: %3<br/>%4: %5<br/>%6: %7").arg(m_strRAMInfoLabelTitle).arg(m_strRAMInfoLabelTotal).arg(UITranslator::formatSize(_1K * iTotalRAM, g_iDecimalCount)) 1796 .arg(m_strRAMInfoLabelFree).arg(UITranslator::formatSize(_1K * (iFreeRAM), g_iDecimalCount)) 1797 .arg(m_strRAMInfoLabelUsed).arg(UITranslator::formatSize(_1K * (iTotalRAM - iFreeRAM), g_iDecimalCount)); 1795 strInfo = QString("<b>%1</b><br/>%2: %3<br/><font color=\"%4\">%5: %6</font><br/><font color=\"%7\">%8: %9</font>") 1796 .arg(m_strRAMInfoLabelTitle) 1797 .arg(m_strRAMInfoLabelTotal).arg(UITranslator::formatSize(_1K * iTotalRAM, g_iDecimalCount)) 1798 .arg(dataColorString(m_strCPUMetricName, 1)).arg(m_strRAMInfoLabelFree).arg(UITranslator::formatSize(_1K * (iFreeRAM), g_iDecimalCount)) 1799 .arg(dataColorString(m_strCPUMetricName, 0)).arg(m_strRAMInfoLabelUsed).arg(UITranslator::formatSize(_1K * (iTotalRAM - iFreeRAM), g_iDecimalCount)); 1798 1800 m_infoLabels[m_strRAMMetricName]->setText(strInfo); 1799 1801 } … … 1946 1948 resetNetworkInfoLabel(); 1947 1949 resetDiskIOInfoLabel(); 1950 resetRAMInfoLabel(); 1948 1951 } 1949 1952 … … 2175 2178 { 2176 2179 QString strInfo; 2177 strInfo = QString("<b>%1</b><br/>%2: %3<br/>%4: %5<br/>%6: %7").arg(m_strRAMInfoLabelTitle) 2180 strInfo = QString("<b>%1</b><br/>%2: %3<br/><font color=\"%4\">%5: %6</font><br/><font color=\"%7\">%8: %9</font>") 2181 .arg(m_strRAMInfoLabelTitle) 2178 2182 .arg(m_strRAMInfoLabelTotal).arg(UITranslator::formatSize(_1K * m_iTotalRAM, g_iDecimalCount)) 2179 .arg( m_strRAMInfoLabelFree).arg(UITranslator::formatSize(_1K * (m_iTotalRAM - iUsedRAM), g_iDecimalCount))2180 .arg( m_strRAMInfoLabelUsed).arg(UITranslator::formatSize(_1K * iUsedRAM, g_iDecimalCount));2183 .arg(dataColorString(m_strCPUMetricName, 1)).arg(m_strRAMInfoLabelFree).arg(UITranslator::formatSize(_1K * (m_iTotalRAM - iUsedRAM), g_iDecimalCount)) 2184 .arg(dataColorString(m_strCPUMetricName, 0)).arg(m_strRAMInfoLabelUsed).arg(UITranslator::formatSize(_1K * iUsedRAM, g_iDecimalCount)); 2181 2185 m_infoLabels[m_strRAMMetricName]->setText(strInfo); 2182 2186 } … … 2246 2250 QString strInfo; 2247 2251 2248 strInfo = QString("<b>%1</b></b><br/><font color=\"%2\">%3: %4</font>")2252 strInfo = QString("<b>%1</b></b><br/><font>%2: %3</font>") 2249 2253 .arg(m_strCPUInfoLabelTitle) 2250 .arg(dataColorString(m_strCPUMetricName, 0))2251 2254 .arg(m_strCPUInfoLabelGuest).arg("---"); 2252 2255
Note:
See TracChangeset
for help on using the changeset viewer.