Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwelin committed Feb 8, 2021
1 parent 81d6fd1 commit 614364b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/client/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ func (c *Cassowary) Coordinate() (ResultMetrics, error) {
durationMS := c.Duration * 1000
nextTick := durationMS / c.Requests
ticker := time.NewTicker(time.Duration(nextTick) * time.Millisecond)
if nextTick == 0 {
log.Fatalf("The combination of %v requests and %v(s) duration is invalid. Try raising the duration to a greater value", c.Requests, c.Duration)
}
done := make(chan bool)
iter := 0

Expand Down

0 comments on commit 614364b

Please sign in to comment.