Fix bytes to MB conversion.
This commit is contained in:
parent
8607594f6d
commit
3c5f4c6464
|
@ -39,7 +39,8 @@ public class ImpalaConnector {
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void init() {
|
public void init() {
|
||||||
logger.info("Max available memory to the Controller: " + (Runtime.getRuntime().maxMemory() / 1024) + " Mb.");
|
int mb = 1048576;
|
||||||
|
logger.info("Max available memory to the Controller: " + (Runtime.getRuntime().maxMemory() / mb) + " Mb.");
|
||||||
try {
|
try {
|
||||||
boolean supportsBatchUpdates = jdbcTemplate.getDataSource().getConnection().getMetaData().supportsBatchUpdates();
|
boolean supportsBatchUpdates = jdbcTemplate.getDataSource().getConnection().getMetaData().supportsBatchUpdates();
|
||||||
logger.info("The database " + (supportsBatchUpdates ? "supports" : "does not support") + " \"BatchUpdates\"!");
|
logger.info("The database " + (supportsBatchUpdates ? "supports" : "does not support") + " \"BatchUpdates\"!");
|
||||||
|
|
Loading…
Reference in New Issue