Commit 80f060ac authored by Ben's avatar Ben

Fix bytes to bits conversion.

Patch by
parent fe3dfd0b
......@@ -147,6 +147,9 @@ procman_make_label_for_mmaps_or_ofiles(const char *format,
procman::format_size(guint64 size, bool want_bits)
if (want_bits)
size *= 8;
const GFormatSizeFlags flags = (want_bits ? G_FORMAT_SIZE_BITS : G_FORMAT_SIZE_IEC_UNITS);
return g_format_size_full(size, flags);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment