From c3457b2f54e13d39a381b14121369dc75b22360c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sat, 21 Feb 2015 14:57:37 +1100 Subject: [PATCH] Change status output --- client.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 94cbca0d..c5ad0dd1 100644 --- a/client.go +++ b/client.go @@ -235,8 +235,11 @@ func (cl *Client) WriteStatus(_w io.Writer) { } else { fmt.Fprint(w, t.Name()) } + fmt.Fprint(w, "\n") if t.haveInfo() { - fmt.Fprintf(w, ": %f%% of %d bytes", 100*(1-float32(t.BytesLeft())/float32(t.Length())), t.Length()) + fmt.Fprintf(w, "%f%% of %d bytes", 100*(1-float32(t.BytesLeft())/float32(t.Length())), t.Length()) + } else { + w.WriteString("") } fmt.Fprint(w, "\n") fmt.Fprint(w, "Blocked reads:") -- 2.48.1