diff --git a/lib/stats.js b/lib/stats.js index 586582d..2ab4a6d 100644 --- a/lib/stats.js +++ b/lib/stats.js @@ -10,8 +10,7 @@ var config = require('../config'); var c = config.storageOpts.mongoDb; -var url = 'mongodb://' + (c.host || 'localhost') + ':' + (c.port ||  27017) + '/bws'; - +var url = c.uri; var startDate = moment(); var endDate = moment();