diff options
author | Daniel Pasette <dan@10gen.com> | 2011-12-24 17:25:24 -0800 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2012-04-17 14:18:40 -0400 |
commit | a55507d21e53970d324eef2cafc653aea648b885 (patch) | |
tree | 548eaaecad35bc217cda1d9a9dc6fdc634d79e09 | |
parent | 23a1c8019a8f25dab89a55a5f7c84dd19720adff (diff) | |
download | mongo-a55507d21e53970d324eef2cafc653aea648b885.tar.gz |
SERVER-3875: Added auth() call to mongotop and fixed output formatting.
-rw-r--r-- | tools/top.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/top.cpp b/tools/top.cpp index 42e45684bb3..ff5a94bd5e7 100644 --- a/tools/top.cpp +++ b/tools/top.cpp @@ -1,4 +1,4 @@ -// stat.cpp +// top.cpp /** * Copyright (C) 2008 10gen Inc. @@ -91,9 +91,9 @@ namespace mongo { cout << "\n" << setw(longest) << "ns" - << "\ttotal " - << "\tread " - << "\twrite " + << "\ttotal" + << "\tread" + << "\twrite" << "\t\t" << terseCurrentTime() << endl; for ( int i=data.size()-1; i>=0 && data.size() - i < 10 ; i-- ) { @@ -107,6 +107,8 @@ namespace mongo { int run() { _sleep = getParam( "sleep" , _sleep ); + + auth(); BSONObj prev = getData(); |