summaryrefslogtreecommitdiff
path: root/src/disks.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/disks.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/disks.cpp')
-rw-r--r--src/disks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/disks.cpp b/src/disks.cpp
index 302098a..3498cae 100644
--- a/src/disks.cpp
+++ b/src/disks.cpp
@@ -417,7 +417,7 @@ create_disk_view(ProcData *procdata)
case DISK_AVAIL:
g_object_set(cell, "xalign", 1.0f, NULL);
gtk_tree_view_column_set_cell_data_func(col, cell,
- &procman::size_cell_data_func,
+ &procman::storage_size_cell_data_func,
GUINT_TO_POINTER(i),
NULL);
break;
@@ -437,7 +437,7 @@ create_disk_view(ProcData *procdata)
g_object_set(cell, "xalign", 1.0f, NULL);
gtk_tree_view_column_pack_start(col, cell, FALSE);
gtk_tree_view_column_set_cell_data_func(col, cell,
- &procman::size_cell_data_func,
+ &procman::storage_size_cell_data_func,
GUINT_TO_POINTER(DISK_USED),
NULL);