ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject git commit: AMBARI-5247. Jobs UI - Negative duration shown for jobs in progress (alexantonenko)
Date Thu, 27 Mar 2014 16:30:28 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk a4b1f2bad -> a06bb70f9


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


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a06bb70f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a06bb70f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a06bb70f

Branch: refs/heads/trunk
Commit: a06bb70f9e0b7dde3da450322671aee3c96deed0
Parents: a4b1f2b
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Thu Mar 27 18:27:18 2014 +0200
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Thu Mar 27 18:29:50 2014 +0200

----------------------------------------------------------------------
 ambari-web/app/models/jobs/job.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a06bb70f/ambari-web/app/models/jobs/job.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/jobs/job.js b/ambari-web/app/models/jobs/job.js
index 04bdea2..09aa261 100644
--- a/ambari-web/app/models/jobs/job.js
+++ b/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);


Mime
View raw message