switch to dbStats, only display fileSize if it exists

This commit is contained in:
barisusakli
2015-10-17 18:37:07 -04:00
parent 5fda800f2b
commit a9fae94e5a
2 changed files with 3 additions and 1 deletions

View File

@@ -182,7 +182,7 @@
db.command({'serverStatus': 1}, next);
},
stats: function(next) {
db.stats({}, next);
db.command({'dbStats': 1}, next);
},
listCollections: function(next) {
db.listCollections().toArray(function(err, items) {