From 6761d5c3c9a430062b1ed08ce206b47400d1b8d4 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 28 Mar 2013 15:25:36 -0400 Subject: [PATCH] improve library scan progress reporting --- dashboard-ui/scripts/dashboardpage.js | 2 +- dashboard-ui/scripts/scheduledtaskspage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/dashboardpage.js b/dashboard-ui/scripts/dashboardpage.js index 1e095281fa..e0bbb8cf15 100644 --- a/dashboard-ui/scripts/dashboardpage.js +++ b/dashboard-ui/scripts/dashboardpage.js @@ -262,7 +262,7 @@ html += task.Name; if (task.State == "Running") { - var progress = Math.round(task.CurrentProgressPercentage || 0); + var progress = (task.CurrentProgressPercentage || 0).toFixed(1); html += ' - ' + progress + '%'; html += ''; diff --git a/dashboard-ui/scripts/scheduledtaskspage.js b/dashboard-ui/scripts/scheduledtaskspage.js index 5ef9ed5002..3be7ccc30e 100644 --- a/dashboard-ui/scripts/scheduledtaskspage.js +++ b/dashboard-ui/scripts/scheduledtaskspage.js @@ -119,7 +119,7 @@ } else if (task.State == "Running") { - var progress = Math.round(task.CurrentProgressPercentage || 0); + var progress = (task.CurrentProgressPercentage || 0).toFixed(1); html += '

'; html += '' + progress + '%';