Skip to content

Commit

Permalink
buf: fix improper alignment of bombardier's fields
Browse files Browse the repository at this point in the history
Due to improper alignment program crashed on ARM and x86-32
architectures.

Fixes #18.
  • Loading branch information
codesenberg committed May 4, 2017
1 parent 3bec128 commit 94485b3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions bombardier.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,24 @@ import (
)

type bombardier struct {
bytesTotal, bytesData int64

// HTTP codes
req1xx uint64
req2xx uint64
req3xx uint64
req4xx uint64
req5xx uint64
others uint64

conf config
requestHeaders *fasthttp.RequestHeader
barrier completionBarrier
workers sync.WaitGroup

bytesTotal int64
bytesData int64
timeTaken time.Duration
latencies *stats
requests *stats
timeTaken time.Duration
latencies *stats
requests *stats

client *fasthttp.Client
doneChan chan struct{}
Expand All @@ -34,14 +42,6 @@ type bombardier struct {
reqs int64
start time.Time

// HTTP codes
req1xx uint64
req2xx uint64
req3xx uint64
req4xx uint64
req5xx uint64
others uint64

// Errors
errors *errorMap

Expand Down

0 comments on commit 94485b3

Please sign in to comment.