fix: 调整进度条的步幅

This commit is contained in:
2025-08-17 14:23:35 +08:00
parent caa26c729e
commit 8e69c96891
5 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ public readonly struct TaskProgress
TaskState.Cancelled => ProgressStatus.Canceled,
_ => ProgressStatus.Failed
},
ProgressPercent = Total > 0 ? (Current * 100) / Total : 0,
ProgressPercent = Total > 0 ? ((double)Current * 100) / (double)Total : 0,
ErrorMessage = Error ?? string.Empty
};
}