diff --git a/lib/historyKeeper.js b/lib/historyKeeper.js index 2b5ec8770..46efcc436 100644 --- a/lib/historyKeeper.js +++ b/lib/historyKeeper.js @@ -99,7 +99,7 @@ module.exports.create = function (config, cb) { paths.staging = keyOrDefaultString('blobStagingPath', './blobstage'); paths.blob = keyOrDefaultString('blobPath', './blob'); - Env.defaultStorageLimit = typeof(config.defaultStorageLimit) === 'number' && config.defaultStorageLimit > 0? + Env.defaultStorageLimit = typeof(config.defaultStorageLimit) === 'number' && config.defaultStorageLimit >= 0? config.defaultStorageLimit: Core.DEFAULT_LIMIT;