aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/Html/scripts/ScheduledTasksPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.WebDashboard/Html/scripts/ScheduledTasksPage.js')
-rw-r--r--MediaBrowser.WebDashboard/Html/scripts/ScheduledTasksPage.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/MediaBrowser.WebDashboard/Html/scripts/ScheduledTasksPage.js b/MediaBrowser.WebDashboard/Html/scripts/ScheduledTasksPage.js
index d822db722..fe42396b4 100644
--- a/MediaBrowser.WebDashboard/Html/scripts/ScheduledTasksPage.js
+++ b/MediaBrowser.WebDashboard/Html/scripts/ScheduledTasksPage.js
@@ -119,8 +119,7 @@
}
else if (task.State == "Running") {
- var progress = task.CurrentProgress || { PercentComplete: 0 };
- progress = Math.round(progress.PercentComplete);
+ var progress = Math.round(task.CurrentProgressPercentage || 0);
html += '<p><progress max="100" value="' + progress + '" title="' + progress + '%">';
html += '' + progress + '%';