fix: 调整进度条的步幅
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user