From: Matt Joiner Date: Sat, 21 Feb 2015 03:57:37 +0000 (+1100) Subject: Change status output X-Git-Tag: v1.0.0~1330 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c3457b2f54e13d39a381b14121369dc75b22360c;p=btrtrc.git Change status output --- 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:")