From: Stas Vilchik Date: Thu, 26 Nov 2015 09:32:54 +0000 (+0100) Subject: SONAR-7080 use execution duration provided by a server X-Git-Tag: 5.3-RC1~157 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1209d703eeae8130f87ebbe15306fd44e4675eb4;p=sonarqube.git SONAR-7080 use execution duration provided by a server --- 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) {