fix 下载百分比

This commit is contained in:
2024-02-24 21:02:06 +08:00
parent a6664f750d
commit 5b13996591
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ class DownloadsUI extends BaseUI<DownloadsUIModel> {
)
else if (task.status == "active")
Text(
"下载中... (${((task.completedLength ?? 0) / (task.totalLength ?? 1)).toStringAsFixed(4)}%)")
"下载中... (${((task.completedLength ?? 0) * 100 / (task.totalLength ?? 1)).toStringAsFixed(4)}%)")
else
Text(
"状态:${model.statusMap[task.status]}",