fix output format for summary
This commit is contained in:
parent
8b16c126a3
commit
7ec8b398be
2
main.go
2
main.go
|
@ -191,7 +191,7 @@ 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, "")
|
||||||
|
|
||||||
|
|
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