lib/mbaas-reporting.js
function getEnvNumericalValue(envValue, defaultVal) {
  var limit = defaultVal;
  if (envValue) {
    limit = parseInt(envValue,10);
    if (isNaN(limit)) {
      limit = defaultVal;
    }
  }
  return limit;
}
function getEnvNumericalValue(envValue, defaultVal) {
  var limit = defaultVal;
  if (envValue) {
    limit = parseInt(envValue,10);
    if (isNaN(limit)) {
      limit = defaultVal;
    }
  }
  return limit;
}
function getEnvNumericalValue ( envValue , defaultVal ) { var limit = defaultVal ; if ( envValue ) { limit = parseInt ( envValue , 10 ) ; if ( isNaN ( limit ) ) { limit = defaultVal ; } } return limit ; }
parse the value if it is present and if it is not NaN return that else return the default
parse the value if it is present and if it is not NaN return that else return the default