mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-27 04:57:42 +08:00
fix: transmission progress
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user