fix output format for summary
This commit is contained in:
parent
8b16c126a3
commit
7ec8b398be
6
main.go
6
main.go
|
@ -181,7 +181,7 @@ func main() {
|
||||||
desc += fmt.Sprintf(" for %s", duration.String())
|
desc += fmt.Sprintf(" for %s", duration.String())
|
||||||
}
|
}
|
||||||
desc += fmt.Sprintf(" using %d connection(s).", *concurrency)
|
desc += fmt.Sprintf(" using %d connection(s).", *concurrency)
|
||||||
fmt.Fprintln(outStream,desc)
|
fmt.Fprintln(outStream, desc)
|
||||||
|
|
||||||
// charts listener
|
// charts listener
|
||||||
var ln net.Listener
|
var ln net.Listener
|
||||||
|
@ -191,9 +191,9 @@ func main() {
|
||||||
errAndExit(err.Error())
|
errAndExit(err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Fprintln(outStream,"@ Real-time charts is listening on http://%s", ln.Addr().String())
|
fmt.Fprintf(outStream, "@ Real-time charts is listening on http://%s\n", ln.Addr().String())
|
||||||
}
|
}
|
||||||
fmt.Fprintln(outStream,"")
|
fmt.Fprintln(outStream, "")
|
||||||
|
|
||||||
// do request
|
// do request
|
||||||
go requester.Run()
|
go requester.Run()
|
||||||
|
|
2
print.go
2
print.go
|
@ -68,7 +68,7 @@ func (p *Printer) PrintLoop(snapshot func() *SnapshotReport, interval time.Durat
|
||||||
|
|
||||||
var backCursor string
|
var backCursor string
|
||||||
cl := clearLine
|
cl := clearLine
|
||||||
if p.summary {
|
if p.summary || interval == 0 {
|
||||||
cl = nil
|
cl = nil
|
||||||
}
|
}
|
||||||
echo := func(isFinal bool) {
|
echo := func(isFinal bool) {
|
||||||
|
|
Loading…
Reference in New Issue