fix: 修复消息中百分比多乘了 100 的问题

This commit is contained in:
amtoaer 2023-09-02 16:03:28 +08:00
parent 2fcf5039ff
commit ba2745266a

View File

@ -646,7 +646,7 @@ class DownloadChain(ChainBase):
for torrent in torrents:
messages.append(f"{index}. {torrent.title} "
f"{StringUtils.str_filesize(torrent.size)} "
f"{round(torrent.progress * 100, 1)}%")
f"{round(torrent.progress, 1)}%")
index += 1
self.post_message(Notification(
channel=channel, mtype=NotificationType.Download,