Skip to content

armgit / hey

Public Imported from GitHub
0

HTTP load generator, ApacheBench (ab) replacement

Go

Don't report progress in csv mode.

Burcu Doganb23e53f6b851
diff --git a/boomer/boomer.go b/boomer/boomer.go
index b18a260..97a1e7f 100644
--- a/boomer/boomer.go
+++ b/boomer/boomer.go
@@ -98,7 +98,7 @@ type Boomer struct {
}
func (b *Boomer) startProgress() {
- if b.Output == "" {
+ if b.Output != "" {
return
}
b.bar = pb.New(b.N)
@@ -107,14 +107,14 @@ func (b *Boomer) startProgress() {
}
func (b *Boomer) finalizeProgress() {
- if b.Output == "" {
+ if b.Output != "" {
return
}
b.bar.Finish()
}
func (b *Boomer) incProgress() {
- if b.Output == "" {
+ if b.Output != "" {
return
}
b.bar.Increment()