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:
parent
32bb91a1a2
commit
bf84bfe4b0
@ -48,7 +48,7 @@ func (widget *Widget) prettyTorrentName(name string) string {
|
|||||||
|
|
||||||
func (widget *Widget) torrentPercentDone(torrent *transmissionrpc.Torrent) string {
|
func (widget *Widget) torrentPercentDone(torrent *transmissionrpc.Torrent) string {
|
||||||
pctDone := *torrent.PercentDone
|
pctDone := *torrent.PercentDone
|
||||||
str := fmt.Sprintf("%3d", int(pctDone*100))
|
str := fmt.Sprintf("%3d%%", int(pctDone*100))
|
||||||
|
|
||||||
if pctDone == 0.0 {
|
if pctDone == 0.0 {
|
||||||
str = "[gray::b]" + str
|
str = "[gray::b]" + str
|
||||||
|
Loading…
x
Reference in New Issue
Block a user