File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ import (
19
19
"strings"
20
20
"time"
21
21
22
+ "github.com/mercadolibre/pla/boomer"
22
23
"github.com/sschepens/gohistogram"
23
24
"github.com/sschepens/pb"
24
- "github.com/mercadolibre/pla/boomer"
25
25
)
26
26
27
27
const (
@@ -136,13 +136,16 @@ func (b *BasicInterface) print() {
136
136
fmt .Printf (" Response Size per Request:\t %d bytes.\n " , b .sizeTotal / int64 (b .histo .Count ()))
137
137
}
138
138
b .printStatusCodes ()
139
- b .printHistogram ()
140
- b .printLatencies ()
141
139
}
142
140
143
141
if len (b .errorDist ) > 0 {
144
142
b .printErrors ()
145
143
}
144
+
145
+ if b .histo .Count () > 0 {
146
+ b .printHistogram ()
147
+ b .printLatencies ()
148
+ }
146
149
}
147
150
148
151
// Prints percentile latencies.
@@ -188,6 +191,6 @@ func (b *BasicInterface) printStatusCodes() {
188
191
func (b * BasicInterface ) printErrors () {
189
192
fmt .Printf ("\n Error distribution:\n " )
190
193
for err , num := range b .errorDist {
191
- fmt .Printf (" [%d ]\t %s \n " , num , err )
194
+ fmt .Printf (" [%s ]\t %d occurrences \n " , err , num )
192
195
}
193
196
}
You can’t perform that action at this time.
0 commit comments