X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=client.go;h=28dbc8ed4466853a9be6abcc76276beab6d1ba3e;hb=eeb021b134137d2096f0ef899d5215ece8989ba0;hp=d8b1706478db3e8f7b165008e5af16adb188cc5f;hpb=9434fe58a2bc3b6deb360713b015110dfa31794c;p=btrtrc.git diff --git a/client.go b/client.go index d8b17064..28dbc8ed 100644 --- a/client.go +++ b/client.go @@ -166,8 +166,8 @@ func (cl *Client) WriteStatus(_w io.Writer) { w, "%f%% of %d bytes (%s)", 100*(1-float64(t.bytesMissingLocked())/float64(t.info.TotalLength())), - *t.length, - humanize.Bytes(uint64(*t.length))) + t.length(), + humanize.Bytes(uint64(t.length()))) } else { w.WriteString("") }