diff --git a/pkg/buildin/torrent.go b/pkg/buildin/torrent.go index 4018c71..20204a6 100644 --- a/pkg/buildin/torrent.go +++ b/pkg/buildin/torrent.go @@ -135,7 +135,11 @@ func (t *Torrent) Progress() (int, error) { if t.t.Complete().Bool() { return 100, nil } - return int(t.t.BytesCompleted() * 100 / t.TotalSize()), nil + p := int(t.t.BytesCompleted() * 100 / t.TotalSize()) + if p >= 100 { + p = 99 + } + return 99, nil } func (t *Torrent) Stop() error {