diff --git a/README.md b/README.md index cdee25a..2b62e0d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Mathlion is a Kibana extension that enables equation parsing and advanced math under Timelion. Check out what it can do in the [documentation](http://mathlion.docs.fermiumlabs.com/) -### Installation +### Installation Copy the last installation url for your version of Kibana from [the repository releases](https://github.com/fermiumlabs/mathlion/releases/latest). The file follows the naming `mathlion-major.minor.patch_for_kibana-major.minor.patch.zip` where the first version is the one of mathlion, the second version indicated it's the one in Kibana. diff --git a/functions/enviroment/math-enviroment.js b/functions/enviroment/math-enviroment.js index 9240453..5d39d75 100644 --- a/functions/enviroment/math-enviroment.js +++ b/functions/enviroment/math-enviroment.js @@ -28,7 +28,7 @@ module.exports.exists = function (envName) { var interval = setInterval (function (enviroment) { var now = Date.now() / 1000; for (var key in enviroment) { - if (typeof enviroment[key] !== 'function' && now - enviroment[key].last_request > 10) { + if (typeof enviroment[key] !== 'function' && now - enviroment[key].last_request > 120) { delete enviroment[key]; } }