Skip to content

Commit 8d76317

Browse files
committed
修正主窗口鼠标提示中CPU频率显示不正确的问题
1 parent a481974 commit 8d76317

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TrafficMonitor/TrafficMonitorDlg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ CString CTrafficMonitorDlg::GetMouseTipsInfo()
173173
temp.Format(_T("\r\n%s: %d %%"), CCommon::LoadText(IDS_GPU_USAGE), theApp.m_gpu_usage);
174174
tip_info += temp;
175175
}
176-
if (theApp.m_general_data.IsHardwareEnable(HI_GPU) && !skin_layout.GetItem(TDI_CPU_FREQ).show && theApp.m_cpu_freq >= 0)
176+
if (theApp.m_general_data.IsHardwareEnable(HI_CPU) && !skin_layout.GetItem(TDI_CPU_FREQ).show && theApp.m_cpu_freq >= 0)
177177
{
178-
temp.Format(_T("\r\n%s: %d %%"), CCommon::LoadText(IDS_CPU_FREQ), theApp.m_cpu_freq);
178+
temp.Format(_T("\r\n%s: %s"), CCommon::LoadText(IDS_CPU_FREQ), CCommon::FreqToString(theApp.m_cpu_freq, theApp.m_main_wnd_data));
179179
tip_info += temp;
180180
}
181181
if (theApp.m_general_data.IsHardwareEnable(HI_CPU) && !skin_layout.GetItem(TDI_CPU_TEMP).show && theApp.m_cpu_temperature > 0)

0 commit comments

Comments
 (0)