Compare commits

...

1 Commits

Author SHA1 Message Date
Felipe Borges
0e988748ad 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
2021-12-06 14:44:14 +01:00

View File

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