fix: transmission progress

This commit is contained in:
Simon Ding
2024-07-12 20:04:07 +08:00
parent 1b3faa7852
commit f2ee307a03

View File

@@ -93,7 +93,11 @@ func (t *Torrent) Progress() int {
return 100 return 100
} }
if t.getTorrent().PercentDone != nil { if t.getTorrent().PercentDone != nil {
return int(*t.getTorrent().PercentDone * 100) p := int(*t.getTorrent().PercentDone * 100)
if p == 100 {
p = 99
}
return p
} }
return 0 return 0
} }