@using ECM.JobRunner.Common.JobRunnerReference;
@jobStatus.ProgressCurrent/@jobStatus.ProgressTotal
@code { [Parameter] public StatusItem? jobStatus { get; set; } protected int getCompletedPercent(StatusItem? entry) { if (entry != null && entry.ProgressCurrent > 0 && entry.ProgressTotal > 0) { float fraction = (float)entry.ProgressCurrent / entry.ProgressTotal; float percent = fraction * 100; return (int)percent; } else { return 0; } } }