Skip to content

armgit / hey

Public Imported from GitHub
0

HTTP load generator, ApacheBench (ab) replacement

Go

New pb formatting

Sergey Cherepanovb02c0c111564
diff --git a/commands/boom.go b/commands/boom.go
index 796abc5..bcd06de 100644
--- a/commands/boom.go
+++ b/commands/boom.go
@@ -49,9 +49,10 @@ type Boom struct {
rpt *report
}
-func newPb(size int) *pb.ProgressBar {
- pb.Current = barChar
- pb.BarStart = ""
- pb.BarEnd = ""
- return pb.StartNew(size)
+func newPb(size int) (bar *pb.ProgressBar) {
+ bar = pb.New(size)
+ bar.Current = barChar
+ bar.BarStart = ""
+ bar.BarEnd = ""
+ return
}