From cbd9b56e6592c7a57bdec4ea4607e43c658760ec Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 31 May 2008 20:47:15 +0200 Subject: [PATCH] Do not use "B" suffix for quantities that are not bytes. --- adu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } -- 2.39.5