diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-02-28 15:16:46 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-02-28 15:16:46 +0000 |
commit | 98ea7d3a8dd253d7138f17f6d5463874685e321d (patch) | |
tree | e78e2a8dde7710e30236c9b003e1e98c3239536e /wsutil | |
parent | 4e2090bdc96191c26992ff89fb2ce6c9087636d1 (diff) |
From Anders: revert r47934: it doesn't work everywhere.
See email discussion on -dev.
svn path=/trunk/; revision=47940
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/str_util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wsutil/str_util.c b/wsutil/str_util.c index 5b5bc27450..f2de5bfbee 100644 --- a/wsutil/str_util.c +++ b/wsutil/str_util.c @@ -107,15 +107,15 @@ gchar *format_size(gint64 size, format_size_flags_e flags) { } if (size / power / power / power / power >= 10) { - g_string_printf(human_str, "%'" G_GINT64_MODIFIER "d %s", size / power / power / power / power, prefix[pfx_off]); + g_string_printf(human_str, "%" G_GINT64_MODIFIER "d %s", size / power / power / power / power, prefix[pfx_off]); } else if (size / power / power / power >= 10) { - g_string_printf(human_str, "%'" G_GINT64_MODIFIER "d %s", size / power / power / power, prefix[pfx_off+1]); + g_string_printf(human_str, "%" G_GINT64_MODIFIER "d %s", size / power / power / power, prefix[pfx_off+1]); } else if (size / power / power >= 10) { - g_string_printf(human_str, "%'" G_GINT64_MODIFIER "d %s", size / power / power, prefix[pfx_off+2]); + g_string_printf(human_str, "%" G_GINT64_MODIFIER "d %s", size / power / power, prefix[pfx_off+2]); } else if (size / power >= 10) { - g_string_printf(human_str, "%'" G_GINT64_MODIFIER "d %s", size / power, prefix[pfx_off+3]); + g_string_printf(human_str, "%" G_GINT64_MODIFIER "d %s", size / power, prefix[pfx_off+3]); } else { - g_string_printf(human_str, "%'" G_GINT64_MODIFIER "d ", size); + g_string_printf(human_str, "%" G_GINT64_MODIFIER "d ", size); is_small = TRUE; } |