From 3fe9053aa8bf8a54ae03954fb71477182f9e0d70 Mon Sep 17 00:00:00 2001 From: Mukhtar Akere Date: Wed, 16 Apr 2025 23:24:53 +0100 Subject: [PATCH] fix progress report --- pkg/qbit/torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/qbit/torrent.go b/pkg/qbit/torrent.go index 6218a74..c37d61f 100644 --- a/pkg/qbit/torrent.go +++ b/pkg/qbit/torrent.go @@ -179,7 +179,7 @@ func (q *QBit) UpdateTorrentMin(t *Torrent, debridTorrent *debrid.Torrent) *Torr addedOn = time.Now() } totalSize := debridTorrent.Bytes - progress := cmp.Or(debridTorrent.Progress, 100) + progress := cmp.Or(debridTorrent.Progress, 0.0) progress = progress / 100.0 sizeCompleted := int64(float64(totalSize) * progress)