diff options
author | Burt P <pburt0@gmail.com> | 2017-08-11 00:10:52 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-08-11 02:52:21 -0700 |
commit | 8de8535398ea0838301802ad7fc764144f9b3135 (patch) | |
tree | 4301a0174c18cc86db897cd5fd501e6fdbffee61 /modules/devices/x86/processor.c | |
parent | ecdc375c54201be5776ce93d665ee77f74b1167a (diff) |
Make MHz translatable in CPU list
It was kindof translatable before, but as part of a messy
use-once c-format string. In this form it is re-usable elsewhere.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/x86/processor.c')
-rw-r--r-- | modules/devices/x86/processor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c index c5bdd5e2..b40bf161 100644 --- a/modules/devices/x86/processor.c +++ b/modules/devices/x86/processor.c @@ -468,10 +468,10 @@ gchar *processor_get_info(GSList * processors) for (l = processors; l; l = l->next) { processor = (Processor *) l->data; - tmp = g_strdup_printf(_("%s$CPU%d$%s=%.2fMHz\n"), + tmp = g_strdup_printf("%s$CPU%d$%s=%.2f %s\n", tmp, processor->id, processor->model_name, - processor->cpu_mhz); + processor->cpu_mhz, _("MHz")); hashkey = g_strdup_printf("CPU%d", processor->id); moreinfo_add_with_prefix("DEV", hashkey, |