diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-02-26 06:40:25 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-02-26 06:40:25 +0000 |
commit | 0645396514fb5a9d6998c2d42c93c135491042ac (patch) | |
tree | 1f58991e1949b0252ffb61909d9819e14a97ba22 /wsutil/str_util.c | |
parent | 96a24cc79f7a32851cc2005603e32633389043a3 (diff) |
Print human-readable statistics by default. Raw values can be printed
using "-M". Based on a suggestion by Hansang Bae.
svn path=/trunk/; revision=47900
Diffstat (limited to 'wsutil/str_util.c')
-rw-r--r-- | wsutil/str_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wsutil/str_util.c b/wsutil/str_util.c index 9f8cac5320..f2de5bfbee 100644 --- a/wsutil/str_util.c +++ b/wsutil/str_util.c @@ -131,6 +131,9 @@ gchar *format_size(gint64 size, format_size_flags_e flags) { case format_size_unit_bits_s: g_string_append(human_str, is_small ? "bits/s" : "bps"); break; + case format_size_unit_bytes_s: + g_string_append(human_str, is_small ? "bytes/s" : "Bps"); + break; default: g_assert_not_reached(); } |