summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/shell/collection.js4
-rw-r--r--src/mongo/shell/utils_sh.js8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/shell/collection.js b/src/mongo/shell/collection.js
index b3b2dace6ae..8c75f5691dd 100644
--- a/src/mongo/shell/collection.js
+++ b/src/mongo/shell/collection.js
@@ -782,10 +782,10 @@ DBCollection.prototype.getSplitKeysForChunks = function( chunkSize ){
if( ! chunkSize ){
chunkSize = config.settings.findOne({ _id : "chunksize" }).value
- print( "Chunk size not set, using default of " + chunkSize + "Mb" )
+ print( "Chunk size not set, using default of " + chunkSize + "MB" )
}
else{
- print( "Using chunk size of " + chunkSize + "Mb" )
+ print( "Using chunk size of " + chunkSize + "MB" )
}
var shardDocs = config.shards.find().toArray()
diff --git a/src/mongo/shell/utils_sh.js b/src/mongo/shell/utils_sh.js
index 9d1b3a47822..990f4d24b85 100644
--- a/src/mongo/shell/utils_sh.js
+++ b/src/mongo/shell/utils_sh.js
@@ -17,10 +17,10 @@ sh._adminCommand = function( cmd , skipCheck ) {
}
sh._dataFormat = function( bytes ){
- if( bytes < 1024 ) return Math.floor( bytes ) + "b"
- if( bytes < 1024 * 1024 ) return Math.floor( bytes / 1024 ) + "kb"
- if( bytes < 1024 * 1024 * 1024 ) return Math.floor( ( Math.floor( bytes / 1024 ) / 1024 ) * 100 ) / 100 + "Mb"
- return Math.floor( ( Math.floor( bytes / ( 1024 * 1024 ) ) / 1024 ) * 100 ) / 100 + "Gb"
+ if( bytes < 1024 ) return Math.floor( bytes ) + "B"
+ if( bytes < 1024 * 1024 ) return Math.floor( bytes / 1024 ) + "KiB"
+ if( bytes < 1024 * 1024 * 1024 ) return Math.floor( ( Math.floor( bytes / 1024 ) / 1024 ) * 100 ) / 100 + "MiB"
+ return Math.floor( ( Math.floor( bytes / ( 1024 * 1024 ) ) / 1024 ) * 100 ) / 100 + "GiB"
}
sh._collRE = function( coll ){