0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

use appendIntOrLL for admin stuff

This commit is contained in:
Eliot Horowitz 2010-02-03 12:33:48 -05:00
parent 8e28795bab
commit 3c06fe34ba

View File

@ -329,8 +329,8 @@ namespace mongo {
ProcessInfo p;
if ( p.supported() ){
t.append( "resident" , p.getResidentSize() );
t.append( "virtual" , p.getVirtualMemorySize() );
t.appendIntOrLL( "resident" , p.getResidentSize() );
t.appendIntOrLL( "virtual" , p.getVirtualMemorySize() );
t.appendBool( "supported" , true );
}
else {
@ -338,7 +338,7 @@ namespace mongo {
t.appendBool( "supported" , false );
}
t.append( "mapped" , MemoryMappedFile::totalMappedLength() / ( 1024 * 1024 ) );
t.appendIntOrLL( "mapped" , MemoryMappedFile::totalMappedLength() / ( 1024 * 1024 ) );
t.done();