diff options
author | DjLegolas <djlegolas@protonmail.com> | 2022-05-14 11:20:10 +0300 |
---|---|---|
committer | Patrick <tingping@tingping.se> | 2022-05-14 12:42:46 -0500 |
commit | dfda8f2eeec840bbe5e44b9d7563283ecb10bf10 (patch) | |
tree | 8794b8e9b1cbf103ae1118a62030addfd933e256 /src/common | |
parent | b8645bfbf21a5f3e4583d7fc97c418585a48624a (diff) |
fix sysinfo print of cpu name
the cpu name might have tailing spaces in Windows, which weren't remove before printing.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/sysinfo/win32/backend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/sysinfo/win32/backend.c b/src/common/sysinfo/win32/backend.c index 67a0fd2b..e2ae83ed 100644 --- a/src/common/sysinfo/win32/backend.c +++ b/src/common/sysinfo/win32/backend.c @@ -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); |