Skip to content

armgit / hey

Public Imported from GitHub
0

HTTP load generator, ApacheBench (ab) replacement

Go

Error if n < c

Kevin Burke0e35f688f738
diff --git a/boom.go b/boom.go
index b7465a8..b1622ea 100644
--- a/boom.go
+++ b/boom.go
@@ -114,6 +114,10 @@ func main() {
usageAndExit("n and c cannot be smaller than 1.")
}
+ if num < conc {
+ usageAndExit("n cannot be less than c")
+ }
+
url := flag.Args()[0]
method := strings.ToUpper(*m)