Client.WriteStatus: Raise the precision of the completion percentage

This commit is contained in:
Matt Joiner 2016-03-22 08:33:08 +11:00
parent 99109e636b
commit 782589e2b9
1 changed files with 1 additions and 1 deletions

View File

@ -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("<missing metainfo>")
}