pm2-mongodb
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -6,3 +6,3 @@ var shelljs = require('shelljs'); | ||
var refresh = function() { | ||
var mongostat = "mongostat --port " + pmx.getConf().port + " -n 1"; | ||
var mongostat = "mongostat --noheaders --port " + pmx.getConf().port + " -n 1"; | ||
if (pmx.getConf().username != 0 && pmx.getConf().password != false && pmx.getConf().authDB != false) | ||
@@ -14,4 +14,3 @@ mongostat += ' -u ' + pmx.getConf().username + ' -p ' + pmx.getConf().password + ' --authenticationDatabase' + pmx.getConf().authDB; | ||
} | ||
var lines = out.split("\n"); | ||
var str_info = lines[1].replace( /[\s\n\r]+/g,' '); | ||
var str_info = out.replace( /[\s\n\r]+/g,' '); | ||
var data = str_info.split(' '); | ||
@@ -18,0 +17,0 @@ insert.set(data[1]); |
{ | ||
"name": "pm2-mongodb", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "PM2 MongoDB Module", | ||
@@ -5,0 +5,0 @@ "main": "app.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3584
96