fix sysinfo print of cpu name

the cpu name might have tailing spaces in Windows, which weren't remove before printing.
This commit is contained in:
DjLegolas 2022-05-14 11:20:10 +03:00 committed by Patrick
parent b8645bfbf2
commit dfda8f2eee

View File

@ -356,6 +356,8 @@ static char *read_cpu_info (IWbemClassObject *object)
VariantClear (&max_clock_speed_variant);
g_strchomp (name_utf8);
if (cpu_freq_mhz > 1000)
{
result = g_strdup_printf ("%s (%.2fGHz)", name_utf8, cpu_freq_mhz / 1000.f);