Skip to content

Commit

Permalink
show torrent count in console
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Aug 28, 2019
1 parent dd853be commit e6e63bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (c *Console) drawTorrents(g *gocui.Gui) error {
}
selectedIDrow := -1
for i, t := range c.torrents {
fmt.Fprintf(v, "%s %s %5d %s\n", t.ID, t.InfoHash, t.Port, t.Name)
fmt.Fprintf(v, "%3d %s %s %5d %s\n", i, t.ID, t.InfoHash, t.Port, t.Name)
if t.ID == c.selectedID {
selectedIDrow = i
}
Expand Down

0 comments on commit e6e63bd

Please sign in to comment.