mirror of
https://github.com/simon-ding/polaris.git
synced 2026-03-07 18:10:49 +08:00
fix: transmission progress
This commit is contained in:
@@ -93,7 +93,11 @@ func (t *Torrent) Progress() int {
|
||||
return 100
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user