summaryrefslogtreecommitdiff
path: root/src/sysinfo.cpp
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-04-16 00:59:04 +0200
committerraveit65 <[email protected]>2019-04-17 17:27:07 +0200
commit52532ffb9cea00d1bc8f29f4da14081d475b28ad (patch)
tree397fd9a27f38ffe7a8a730ea8eff9148ce2b0c17 /src/sysinfo.cpp
parent95cee02dfbaa0fc720e61872979e589b76ab62e6 (diff)
downloadmate-system-monitor-52532ffb9cea00d1bc8f29f4da14081d475b28ad.tar.bz2
mate-system-monitor-52532ffb9cea00d1bc8f29f4da14081d475b28ad.tar.xz
Use g_format_size or g_format_size_full
- IEC units for RAM - SI units for storage and network
Diffstat (limited to 'src/sysinfo.cpp')
-rw-r--r--src/sysinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp
index 4ef988e..594f61f 100644
--- a/src/sysinfo.cpp
+++ b/src/sysinfo.cpp
@@ -915,7 +915,7 @@ procman_create_sysinfo_view(void)
hardware_table = add_section(GTK_BOX(vbox), markup, 1, 2, NULL);
g_free(markup);
- markup = procman::format_size(data->memory_bytes);
+ markup = g_format_size_full(data->memory_bytes, G_FORMAT_SIZE_IEC_UNITS);
add_row(GTK_GRID(hardware_table), _("Memory:"), markup, 0);
g_free(markup);
@@ -932,7 +932,7 @@ procman_create_sysinfo_view(void)
disk_space_table = add_section(GTK_BOX(vbox), markup, 1, 2, NULL);
g_free(markup);
- markup = procman::format_size(data->free_space_bytes);
+ markup = g_format_size(data->free_space_bytes);
add_row(GTK_GRID(disk_space_table), _("Available disk space:"), markup, 0);
g_free(markup);