• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/iperf/0002-fix-speed-display-in-csv-report.patch
Matt WeberMatt Weber committed 04bf807173d29 Jul 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
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
5
​
6
Some parameters displayed in the CSV reports are declared
7
as uint64_t, but the printf format doesn't reflect this.
8
​
9
Submitted bug: https://sourceforge.net/p/iperf/bugs/66/
10
​
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>
14
---
15
 src/Locale.c | 5 +++--
16
 1 file changed, 3 insertions(+), 2 deletions(-)
17
​
18
diff --git a/src/Locale.c b/src/Locale.c
19
index b5d42b1..7b924fa 100644
20
--- a/src/Locale.c
21
+++ b/src/Locale.c
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";
25
 #else
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";
30
 
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";
34
 #endif //WIN32
35
 #endif //HAVE_QUAD_SUPPORT
36
 /* -------------------------------------------------------------------
37
-- 
38
1.9.1
39
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.