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
parent b8645bfbf2
commit ae810fa331
No known key found for this signature in database
GPG Key ID: 05A0A32667764EB7

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);