Skip to content

Commit 3cc1cf8

Browse files
committed
修正CPU频率不遵循“数值和单位用空格分隔”选项的问题
1 parent b05d615 commit 3cc1cf8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

TrafficMonitor/Common.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ CString CCommon::FreqToString(float freq, const PublicSettingData& cfg)
255255
if (freq < 0)
256256
str_val = _T("--");
257257
else
258-
str_val.Format(_T("%.2f GHz"), freq);
258+
str_val.Format(_T("%.2f"), freq);
259+
if (cfg.separate_value_unit_with_space)
260+
str_val += _T(' ');
261+
str_val += _T("GHz");
259262
return str_val;
260263
}
261264
//CString CCommon::KBytesToString(unsigned int kb_size)

0 commit comments

Comments
 (0)