From f51c862af3a6cc8b82bc5cf5c78f37c79d86a6ab Mon Sep 17 00:00:00 2001 From: Philipp P Egli Date: Thu, 15 Feb 2018 19:56:18 +0000 Subject: [PATCH] Updating error handling for concurrency level --- baton.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baton.go b/baton.go index c5b10b0..2e81862 100644 --- a/baton.go +++ b/baton.go @@ -102,7 +102,7 @@ func (baton *Baton) run() { timedMode = true } - if baton.configuration.concurrency == 0 || baton.configuration.numberOfRequests == 0 { + if baton.configuration.concurrency < 1 || baton.configuration.numberOfRequests == 0 { log.Fatal("Invalid concurrency level or number of requests") }