diff options
author | Burt P <pburt0@gmail.com> | 2017-08-14 00:35:52 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-08-14 01:52:53 -0700 |
commit | 3d0a4e60836b3e9318bc64d6d395be5b4394b69a (patch) | |
tree | 7d34ca06de96281fd27460eeade63f498500b361 /modules/devices.c | |
parent | b07cb42679bf0bde8a6470709f48270fe502a533 (diff) |
device: minor tweaks
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices.c')
-rw-r--r-- | modules/devices.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/devices.c b/modules/devices.c index 120d8a92..9c7a184d 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -304,7 +304,7 @@ gchar *processor_frequency_desc(GSList * processors) } } } - ret = h_strdup_cprintf("%s%dx %0.2f %s", ret, strlen(ret) ? " + " : "", cur_count, cur_val, _("MHz")); + ret = h_strdup_cprintf("%s%dx %.2f %s", ret, strlen(ret) ? " + " : "", cur_count, cur_val, _("MHz")); g_slist_free(tmp); return ret; } @@ -332,7 +332,7 @@ gchar *get_processor_max_frequency(void) if (max_freq == 0.0f) { return g_strdup(N_("Unknown")); } else { - return g_strdup_printf("%.0f %s", max_freq, _("MHz") ); + return g_strdup_printf("%.2f %s", max_freq, _("MHz") ); } } |