trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbirds...@apache.org
Subject [2/5] incubator-trafodion git commit: rework
Date Fri, 08 Jan 2016 16:43:27 GMT
rework


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

Branch: refs/heads/master
Commit: 38d588f57fb1577c0b652f33434496bac5f2cfda
Parents: 2fc4eba
Author: Qifan Chen <qfc@adev04.esgyn.com>
Authored: Thu Jan 7 00:03:32 2016 +0000
Committer: Qifan Chen <qfc@adev04.esgyn.com>
Committed: Thu Jan 7 00:03:32 2016 +0000

----------------------------------------------------------------------
 core/sql/sqlcomp/nadefaults.cpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/38d588f5/core/sql/sqlcomp/nadefaults.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlcomp/nadefaults.cpp b/core/sql/sqlcomp/nadefaults.cpp
index 22f2019..a5217c8 100644
--- a/core/sql/sqlcomp/nadefaults.cpp
+++ b/core/sql/sqlcomp/nadefaults.cpp
@@ -5882,6 +5882,7 @@ float NADefaults::computeNumESPsPerCore(NABoolean aggressive)
 
    if ( aggressive ) {
       float totalMemory = gpLinux->totalMemoryAvailable(); // per Node, in KB
+      totalMemory /= 1024; // per Node, in MB
       totalMemory /= 1024; // per Node, in GB
       totalMemory /= coresPerNode ; // per core, in GB
       totalMemory /= 2; // per core, 2GB per ESP


Mime
View raw message