ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject git commit: AMBARI-5298. Mirroring: Start sorting works incorrect. (akovalenko)
Date Tue, 01 Apr 2014 13:40:32 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 18b68f0e8 -> 762ead1b1


AMBARI-5298. Mirroring: Start sorting works incorrect. (akovalenko)


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

Branch: refs/heads/trunk
Commit: 762ead1b10af1f4aea0de53616341537a106c487
Parents: 18b68f0
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Tue Apr 1 16:36:39 2014 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Tue Apr 1 16:36:51 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/mirroring_controller.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/762ead1b/ambari-web/app/controllers/main/mirroring_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/mirroring_controller.js b/ambari-web/app/controllers/main/mirroring_controller.js
index 8ff9819..fc836e1 100644
--- a/ambari-web/app/controllers/main/mirroring_controller.js
+++ b/ambari-web/app/controllers/main/mirroring_controller.js
@@ -181,8 +181,8 @@ App.MainMirroringController = Em.ArrayController.extend({
             id: instance.instance + '_' + opts.dataset,
             name: instance.instance,
             status: instance.status,
-            endTime: new Date(instance.endTime).getTime(),
-            startTime: new Date(instance.startTime).getTime()
+            endTime: new Date(instance.endTime).getTime() || 0,
+            startTime: new Date(instance.startTime).getTime() || 0
           });
         }
       }, this);


Mime
View raw message