public double calculateLocalSwapTotalCapacity(int hostcount,int hostlocalswapsize){
  double d=(double)(hostcount * hostlocalswapsize) / 1024;
  d*=-1;
  d=(double)Math.round(d * 100) / 100;
  return d;
}

public double calculateLocalSwapTotalCapacity ( int hostcount , int hostlocalswapsize ) { double d = ( double ) ( hostcount * hostlocalswapsize ) / 1024 ; d *= - 1 ; d = ( double ) Math . round ( d * 100 ) / 100 ; return d ; }
calculate total amount of virtual machine vswap saved in shared storage when local vswap option is enabled . this option enabled virtual machine vswap placement on host local storage . return value in terabytes .
