|
@@ -136,7 +136,7 @@ var aggregate = {
|
|
function insert(dbName, collection, metric){
|
|
function insert(dbName, collection, metric){
|
|
mongo.connect("mongodb://" + options.host + "/" + options.name, function(err, db) {
|
|
mongo.connect("mongodb://" + options.host + "/" + options.name, function(err, db) {
|
|
if(options.debug) console.log("Connected successfully to server");
|
|
if(options.debug) console.log("Connected successfully to server");
|
|
- var colInfo = {capped: false, size:options.size*options.max, max:options.max};
|
|
|
|
|
|
+ var colInfo = {};
|
|
db.createCollection(collection, colInfo,
|
|
db.createCollection(collection, colInfo,
|
|
function(err, coll) {
|
|
function(err, coll) {
|
|
if (options.debug) console.log("Collection created " + collection + ".");
|
|
if (options.debug) console.log("Collection created " + collection + ".");
|