From c87a6ec2addf460a191876278313f3aad5fb6644 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sat, 6 Jun 2020 13:02:02 -0500 Subject: [PATCH] Fix megabyte symbol, should be MB --- mongodb/list-size-stats-for-all-collections.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mongodb/list-size-stats-for-all-collections.md b/mongodb/list-size-stats-for-all-collections.md index 561dc67..7265a85 100644 --- a/mongodb/list-size-stats-for-all-collections.md +++ b/mongodb/list-size-stats-for-all-collections.md @@ -10,11 +10,11 @@ size metrics for all of our database's collections: ```javascript > db.getCollectionNames().forEach(function (collectionName) { sizeInMb = db[collectionName].stats({ scale: 1024 * 1024 }).size; - print(collectionName + ": " + sizeInMb + "Mb"); + print(collectionName + ": " + sizeInMb + "MB"); }) -books: 10Mb -authors: 2Mb -genres: 1Mb +books: 10MB +authors: 2MB +genres: 1MB ``` This snippet gets all the collections for the current database and iterates