Skip to content

Commit

Permalink
Add percentage sign to Transmission download indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
senorprogrammer committed Jun 27, 2019
1 parent 32bb91a commit bf84bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/transmission/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (widget *Widget) prettyTorrentName(name string) string {

func (widget *Widget) torrentPercentDone(torrent *transmissionrpc.Torrent) string {
pctDone := *torrent.PercentDone
str := fmt.Sprintf("%3d", int(pctDone*100))
str := fmt.Sprintf("%3d%%", int(pctDone*100))

if pctDone == 0.0 {
str = "[gray::b]" + str
Expand Down

0 comments on commit bf84bfe

Please sign in to comment.