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:
parent
8e28795bab
commit
3c06fe34ba
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user