From: Andre Noll Date: Sat, 31 May 2008 18:47:15 +0000 (+0200) Subject: Do not use "B" suffix for quantities that are not bytes. X-Git-Tag: v0.0.2~27 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=cbd9b56e6592c7a57bdec4ea4607e43c658760ec;p=adu.git Do not use "B" suffix for quantities that are not bytes. --- diff --git a/adu.c b/adu.c index 8a54554..8af09cd 100644 --- a/adu.c +++ b/adu.c @@ -707,7 +707,7 @@ static int global_stats_loop_function(struct osl_row *row, void *data) goto err; files = *(uint64_t *)obj.data; if (gsi->count && (gsi->flags & GSF_PRINT_FILES)) { - format_size_value(conf.size_unit_arg, files, + format_count_value(conf.size_unit_arg, files, formated_value); printf("%s%s", formated_value, (gsi->flags & GSF_PRINT_BYTES)? "\t" : "\n"); @@ -722,7 +722,7 @@ static int global_stats_loop_function(struct osl_row *row, void *data) goto err; bytes = *(uint64_t *)obj.data; if (gsi->count && (gsi->flags & GSF_PRINT_BYTES)) { - format_size_value(conf.size_unit_arg, bytes, + format_count_value(conf.size_unit_arg, bytes, formated_value); printf("%s\n", formated_value); } @@ -811,7 +811,7 @@ static int user_stats_loop_function(struct osl_row *row, void *data) goto err; files = *(uint64_t *)obj.data; if (usi->count && (usi->flags & USF_PRINT_FILES)) { - format_size_value(conf.size_unit_arg, files, + format_count_value(conf.size_unit_arg, files, formated_value); printf("%s%s", formated_value, (usi->flags & USF_PRINT_BYTES)? "\t" : "\n" @@ -827,7 +827,7 @@ static int user_stats_loop_function(struct osl_row *row, void *data) goto err; bytes = *(uint64_t *)obj.data; if (usi->count && (usi->flags & USF_PRINT_BYTES)) { - format_size_value(conf.size_unit_arg, bytes, + format_count_value(conf.size_unit_arg, bytes, formated_value); printf("%s\n", formated_value); }