[gnome-control-center/info-change-memory-size-format: 2/2] info-overview: Change the memory size format to base 1000
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/info-change-memory-size-format: 2/2] info-overview: Change the memory size format to base 1000
- Date: Mon, 6 Dec 2021 13:44:29 +0000 (UTC)
commit 0e988748ad14d7009bbec5d03ed89f4fe6a75672
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Dec 6 10:17:59 2021 +0100
info-overview: Change the memory size format to base 1000
We are currently using the IEC (base 1024) units, as recommended by GLib
for memory https://docs.gtk.org/glib/flags.FormatSizeFlags.html
although GNOME System Monitor is using the default size format (base 1000),
https://docs.gtk.org/glib/func.format_size.html
GNOME Boxes also has recently switched to G_FORMAT_SIZE_DEFAULT for RAM too.
Fixes #1540
panels/info-overview/cc-info-overview-panel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c
index 6e832eb35..a0537de0d 100644
--- a/panels/info-overview/cc-info-overview-panel.c
+++ b/panels/info-overview/cc-info-overview-panel.c
@@ -746,7 +746,7 @@ info_overview_panel_setup_overview (CcInfoOverviewPanel *self)
get_hardware_model (self);
glibtop_get_mem (&mem);
- memory_text = g_format_size_full (mem.total, G_FORMAT_SIZE_IEC_UNITS);
+ memory_text = g_format_size (mem.total);
cc_list_row_set_secondary_label (self->memory_row, memory_text);
info = glibtop_get_sysinfo ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]