From 0645396514fb5a9d6998c2d42c93c135491042ac Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 26 Feb 2013 06:40:25 +0000 Subject: 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 --- wsutil/str_util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wsutil/str_util.c') 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(); } -- cgit v1.2.3