ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject [1/2] git commit: AMBARI-3722. Dynamic configs code needs testcases - reverting back to old logic. (srimanth)
Date Wed, 13 Nov 2013 00:49:34 GMT
Updated Branches:
  refs/heads/trunk a9f5a470a -> f77726510


AMBARI-3722. Dynamic configs code needs testcases - reverting back to old logic. (srimanth)


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

Branch: refs/heads/trunk
Commit: f77726510400c11a06f14d6479b70f5aa078b223
Parents: 7bfddc9
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Tue Nov 12 14:56:41 2013 -0800
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Tue Nov 12 16:48:58 2013 -0800

----------------------------------------------------------------------
 .../configs/defaults_providers/yarn_defaults_provider.js     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/f7772651/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js b/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
index 2622e8d..15b30df 100644
--- a/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
+++ b/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
@@ -69,10 +69,10 @@ App.YARNDefaultsProvider = App.DefaultsProvider.create({
     if (!this.clusterDataIsValid()) return null;
     var ram = this.get('clusterData.ram');
     switch(true) {
-      case (ram < 4): return 256;
-      case (ram >= 4 && ram < 8): return 512;
-      case (ram >= 8 && ram < 24): return 1024;
-      case (ram >= 24):
+      case (ram <= 4): return 256;
+      case (ram > 4 && ram <= 8): return 512;
+      case (ram > 8 && ram <= 24): return 1024;
+      case (ram > 24):
       default: return 2048;
     }
   }.property('clusterData.ram'),


Mime
View raw message