Browse Source

AMBARI-5247. Jobs UI - Negative duration shown for jobs in progress (alexantonenko)

Alex Antonenko 11 years ago
parent
commit
a06bb70f9e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ambari-web/app/models/jobs/job.js

+ 1 - 1
ambari-web/app/models/jobs/job.js

@@ -57,7 +57,7 @@ App.AbstractJob = DS.Model.extend({
   duration : function() {
     var startTime = this.get('startTime');
     var endTime = this.get('endTime');
-    if(endTime < startTime) {
+    if(endTime < startTime || endTime == undefined) {
       endTime =  App.get('currentServerTime');
     }
     return dateUtils.duration(startTime, endTime);