From 49587e683b844e00b0abc28c0390a0c4ae12f562 Mon Sep 17 00:00:00 2001 From: Marek Becka Date: Thu, 26 Jul 2018 10:03:08 -0400 Subject: [PATCH] Also scale numeric values also in summary unless -N is used. --- bin/nfdump.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/nfdump.c b/bin/nfdump.c index e36446e..10fa196 100644 --- a/bin/nfdump.c +++ b/bin/nfdump.c @@ -348,11 +348,11 @@ char bps_str[NUMBER_STRING_SIZE], pps_str[NUMBER_STRING_SIZE], bpp_str[NUMBER_ (long long unsigned)stat_record->numpackets, (long long unsigned)bps, (long long unsigned)pps, (long long unsigned)bpp ); } else { - format_number(stat_record->numbytes, byte_str, DONT_SCALE_NUMBER, VAR_LENGTH); - format_number(stat_record->numpackets, packet_str, DONT_SCALE_NUMBER, VAR_LENGTH); - format_number(bps, bps_str, DONT_SCALE_NUMBER, VAR_LENGTH); - format_number(pps, pps_str, DONT_SCALE_NUMBER, VAR_LENGTH); - format_number(bpp, bpp_str, DONT_SCALE_NUMBER, VAR_LENGTH); + format_number(stat_record->numbytes, byte_str, DO_SCALE_NUMBER, VAR_LENGTH); + format_number(stat_record->numpackets, packet_str, DO_SCALE_NUMBER, VAR_LENGTH); + format_number(bps, bps_str, DO_SCALE_NUMBER, VAR_LENGTH); + format_number(pps, pps_str, DO_SCALE_NUMBER, VAR_LENGTH); + format_number(bpp, bpp_str, DO_SCALE_NUMBER, VAR_LENGTH); printf("Summary: total flows: %llu, total bytes: %s, total packets: %s, avg bps: %s, avg pps: %s, avg bpp: %s\n", (unsigned long long)stat_record->numflows, byte_str, packet_str, bps_str, pps_str, bpp_str ); }