From 1209d703eeae8130f87ebbe15306fd44e4675eb4 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 26 Nov 2015 10:32:54 +0100 Subject: [PATCH] SONAR-7080 use execution duration provided by a server --- server/sonar-web/src/main/js/apps/background-tasks/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/background-tasks/main.js b/server/sonar-web/src/main/js/apps/background-tasks/main.js index df17e68b430..f37705548da 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/main.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/main.js @@ -138,7 +138,7 @@ export default React.createClass({ getInProgressDuration(tasks) { let taskInProgress = _.findWhere(tasks, { status: STATUSES.IN_PROGRESS }); - return taskInProgress ? moment().diff(taskInProgress.startedAt) : null; + return taskInProgress ? taskInProgress.executionTimeMs : null; }, onStatusChange(newStatus) { -- 2.39.5