1 From f035e70b72d4285dcdbd393e680777a927cb9da4 Mon Sep 17 00:00:00 2001
2 From: Matt Weber <matthew.weber@rockwellcollins.com>
3 Date: Thu, 28 Jul 2016 19:04:01 -0500
4 Subject: [PATCH] perf: fix "speed" display in csv report
6 Some parameters displayed in the CSV reports are declared
7 as uint64_t, but the printf format doesn't reflect this.
9 Submitted bug: https://sourceforge.net/p/iperf/bugs/66/
11 Signed-off-by: Matt Poduska <matt.poduska@rockwellcollins.com>
12 Signed-off-by: Atul Singh <atul.singh.mandla@gmail.com>
13 Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
15 src/Locale.c | 5 +++--
16 1 file changed, 3 insertions(+), 2 deletions(-)
18 diff --git a/src/Locale.c b/src/Locale.c
19 index b5d42b1..7b924fa 100644
22 @@ -260,11 +260,12 @@ const char reportCSV_bw_format[] =
23 const char reportCSV_bw_jitter_loss_format[] =
24 "%s,%s,%d,%.1f-%.1f,%I64d,%I64d,%.3f,%d,%d,%.3f,%d\n";
26 +#include "inttypes.h"
27 const char reportCSV_bw_format[] =
28 -"%s,%s,%d,%.1f-%.1f,%d,%d\n";
29 +"%s,%s,%d,%.1f-%.1f,%" PRId64 ",%" PRId64 "\n";
31 const char reportCSV_bw_jitter_loss_format[] =
32 -"%s,%s,%d,%.1f-%.1f,%d,%d,%.3f,%d,%d,%.3f,%d\n";
33 +"%s,%s,%d,%.1f-%.1f,%" PRId64 ",%" PRId64 ",%.3f,%d,%d,%.3f,%d\n";
35 #endif //HAVE_QUAD_SUPPORT
36 /* -------------------------------------------------------------------