Skip to content

Commit

Permalink
Status
Browse files Browse the repository at this point in the history
  • Loading branch information
dave committed Oct 27, 2017
1 parent dba25f0 commit 95725b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions loop-status.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ func (b *Blaster) printStatus(final bool) {
} else {
w.Write([]byte(fmt.Sprintf("Latency:\t%v ms per request\n", durationTotal)))
}
} else {
w.Write([]byte(fmt.Sprintf("Latency:\tn/a\n")))
}

if !final {
Expand Down
6 changes: 5 additions & 1 deletion loop-worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ func (b *Blaster) startWorkers(ctx context.Context) {
}
}

workerFunc := b.workerTypes[b.config.WorkerType]
workerFunc, ok := b.workerTypes[b.config.WorkerType]
if !ok {
b.errorChannel <- errors.Errorf("Worker type %s not found", b.config.WorkerType)
return
}
w := workerFunc()

if s, ok := w.(Starter); ok {
Expand Down

0 comments on commit 95725b4

Please sign in to comment.