Client.WriteStatus: Raise the precision of the completion percentage
This commit is contained in:
parent
99109e636b
commit
782589e2b9
|
@ -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>")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue