From 782589e2b9c28cc4ab9f7bf76e016b2a1a853d1f Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 22 Mar 2016 08:33:08 +1100 Subject: [PATCH] Client.WriteStatus: Raise the precision of the completion percentage --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 885b204e..6d8d7fbb 100644 --- a/client.go +++ b/client.go @@ -248,7 +248,7 @@ func (cl *Client) WriteStatus(_w io.Writer) { } 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-float64(t.bytesLeft())/float64(t.length)), t.length) } else { w.WriteString("") }