Fix a bug in computing memory requirements
Fix a bug in computing memory requirements

dm-tran/spark-ec2,romanini/spark-ec2,serialx/spark-ec2,howardlinus/spark-ec2,silvaurus/spark-ec2,pluribus-labs/spark-ec2,Gaojiaqi/spark-ec2,hiconversion/spark-ec2,stat-37601/spark-ec2,jeffusan/spark-ec2,skp33-info/spark-ec2,denbkh/mesos-spark-ec2,jyt109/spark-ec2,serialx/spark-ec2,disconn3ct/spark-ec2,SiGe/spark-ec2,howardlinus/spark-ec2,denbkh/amplab-spark-ec2,mesos/spark-ec2,smartkiwi/spark-ec2,pluribus-labs/spark-ec2,SRIKANTH-GIT/spark-ec2,Gaojiaqi/spark-ec2,1024inc/spark-ec2,mesos/spark-ec2,lckung/spark-ec2,SRIKANTH-GIT/spark-ec2,1024inc/spark-ec2,mesos/spark-ec2,disconn3ct/spark-ec2,inreachventures/spark-ec2,zhuj/spark-ec2,SRIKANTH-GIT/spark-ec2,skp33-info/spark-ec2,Verdad/spark-ec2-public,saurfang/spark-ec2,Wealthport/spark-ec2,denbkh/mesos-spark-ec2,inreachventures/spark-ec2,disconn3ct/spark-ec2,megatron-me-uk/spark-ec2,prateek-s/spark-ec2,dmtran-osc/spark-ec2,tomerk/spark-ec2,1024inc/spark-ec2,apanda/spark-ec2,piskvorky/spark-ec2,Verdad/spark-ec2-public,BrandwatchLtd/spark-ec2,prateek-s/spark-ec2,zhuj/spark-ec2,madhavhugar/spark-ec2,romanini/spark-ec2,amplab/spark-ec2,saurfang/spark-ec2,GordonWang/spark-ec2,SiGe/spark-ec2,dmtran-osc/spark-ec2,hiconversion/spark-ec2,denbkh/amplab-spark-ec2,dm-tran/spark-ec2,jcazevedo/spark-ec2,jyt109/spark-ec2,amplab/spark-ec2,denbkh/amplab-spark-ec2,jeffusan/spark-ec2,SiGe/spark-ec2,Gaojiaqi/spark-ec2,rfarjadi/spark-ec2,hiconversion/spark-ec2,jeffusan/spark-ec2,prateek-s/spark-ec2,tomerk/spark-ec2,paulomagalhaes/spark-ec2,Verdad/spark-ec2-public,jcazevedo/spark-ec2,zhuj/spark-ec2,piskvorky/spark-ec2,apanda/spark-ec2,GordonWang/spark-ec2,dmtran-osc/spark-ec2,lckung/spark-ec2,jey/spark-ec2,paulomagalhaes/spark-ec2,pluribus-labs/spark-ec2,megatron-me-uk/spark-ec2,apanda/spark-ec2,denbkh/mesos-spark-ec2,madhavhugar/spark-ec2,skp33-info/spark-ec2,smartkiwi/spark-ec2,lckung/spark-ec2,silvaurus/spark-ec2,jyt109/spark-ec2,jey/spark-ec2,rfarjadi/spark-ec2,serialx/spark-ec2,BrandwatchLtd/spark-ec2,dm-tran/spark-ec2,BrandwatchLtd/spark-ec2,romanini/spark-ec2,paulomagalhaes/spark-ec2,amplab/spark-ec2,tomerk/spark-ec2,howardlinus/spark-ec2,stat-37601/spark-ec2,piskvorky/spark-ec2,reactormonk/spark-ec2,Wealthport/spark-ec2,rfarjadi/spark-ec2,reactormonk/spark-ec2,saurfang/spark-ec2,uronce-cc/spark-ec2,madhavhugar/spark-ec2,silvaurus/spark-ec2,uronce-cc/spark-ec2,jcazevedo/spark-ec2,Verdad/spark-ec2-public,Wealthport/spark-ec2,reactormonk/spark-ec2,megatron-me-uk/spark-ec2,lckung/spark-ec2