fix: 修复消息中百分比多乘了 100 的问题
This commit is contained in:
parent
2fcf5039ff
commit
ba2745266a
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user