]> Sergey Matveev's repositories - btrtrc.git/blobdiff - client.go
Synchronize Torrent.Info
[btrtrc.git] / client.go
index 035af50d3107990b21c21563706745855ed49d1c..d81697b85423c2bd186c7f6177c7f1653ba3f346 100644 (file)
--- a/client.go
+++ b/client.go
@@ -141,8 +141,8 @@ func (cl *Client) WriteStatus(_w io.Writer) {
                        fmt.Fprint(w, t.name())
                }
                fmt.Fprint(w, "\n")
-               if t.Info() != nil {
-                       fmt.Fprintf(w, "%f%% of %d bytes (%s)", 100*(1-float64(t.bytesMissingLocked())/float64(t.Info().TotalLength())), t.length, humanize.Bytes(uint64(t.Info().TotalLength())))
+               if t.info != nil {
+                       fmt.Fprintf(w, "%f%% of %d bytes (%s)", 100*(1-float64(t.bytesMissingLocked())/float64(t.info.TotalLength())), t.length, humanize.Bytes(uint64(t.info.TotalLength())))
                } else {
                        w.WriteString("<missing metainfo>")
                }