missinggo.Sort->SortSlice

This commit is contained in:
Matt Joiner 2016-07-07 14:14:59 +10:00
parent 9b3869f3c5
commit a6cecc6b5f
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ func (t *Torrent) writeStatus(w io.Writer, cl *Client) {
fmt.Fprintf(w, "Pending peers: %d\n", len(t.peers))
fmt.Fprintf(w, "Half open: %d\n", len(t.halfOpen))
fmt.Fprintf(w, "Active peers: %d\n", len(t.conns))
missinggo.Sort(t.conns, worseConn)
missinggo.SortSlice(t.conns, worseConn)
for i, c := range t.conns {
fmt.Fprintf(w, "%2d. ", i+1)
c.WriteStatus(w, t)