]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7080 use execution duration provided by a server
authorStas Vilchik <vilchiks@gmail.com>
Thu, 26 Nov 2015 09:32:54 +0000 (10:32 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 26 Nov 2015 09:51:39 +0000 (10:51 +0100)
server/sonar-web/src/main/js/apps/background-tasks/main.js

index df17e68b430c048d06854c1d6a2a1fb203ec8e2b..f37705548da322ba7cd6c13e10bfed94948b2197 100644 (file)
@@ -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) {