Do not use "B" suffix for quantities that are not bytes.
authorAndre Noll <maan@systemlinux.org>
Sat, 31 May 2008 18:47:15 +0000 (20:47 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 31 May 2008 18:47:15 +0000 (20:47 +0200)
adu.c

diff --git a/adu.c b/adu.c
index 8a54554..8af09cd 100644 (file)
--- 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);
                }