summaryrefslogtreecommitdiff
path: root/src/procproperties.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/procproperties.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/procproperties.cpp')
-rw-r--r--src/procproperties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/procproperties.cpp b/src/procproperties.cpp
index 6af225a..1570bdb 100644
--- a/src/procproperties.cpp
+++ b/src/procproperties.cpp
@@ -98,7 +98,7 @@ format_memsize(guint64 size)
if (size == 0)
return g_strdup(_("N/A"));
else
- return procman::format_size(size);
+ return g_format_size_full(size, G_FORMAT_SIZE_IEC_UNITS);
}
static void