Bug 57614 - AB csv export not contain 100%
Summary: AB csv export not contain 100%
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: All (show other bugs)
Version: 2.4.10
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2015-02-20 23:10 UTC by Marcin Fabrykowski
Modified: 2015-03-02 19:32 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Fabrykowski 2015-02-20 23:10:41 UTC
Apache benchmark exporting csv file without the longest request.
Possible fix of this problem:

diff --git a/support/ab.c b/support/ab.c
index b26f0ac..b12e372 100644
--- a/support/ab.c
+++ b/support/ab.c
@@ -1038,7 +1038,7 @@ static void output_results(int sig)
                 exit(1);
             }
             fprintf(out, "" "Percentage served" "," "Time in ms" "\n");
-            for (i = 0; i < 100; i++) {
+            for (i = 0; i <= 100; i++) {
                 double t;
                 if (i == 0)
                     t = ap_double_ms(stats[0].time);
Comment 1 Yann Ylavic 2015-02-24 12:15:21 UTC
Thanks for the patch, committed in r1661913.
Comment 2 Yann Ylavic 2015-03-01 12:44:40 UTC
Backport to 2.4.x proposed in r1663094.
Comment 3 Graham Leggett 2015-03-02 19:32:26 UTC
Backported to v2.4.13.