1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Add percentage sign to Transmission download indicator

This commit is contained in:
Chris Cummer 2019-06-26 17:18:33 -07:00
parent 32bb91a1a2
commit bf84bfe4b0

View File

@ -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