summaryrefslogtreecommitdiff
path: root/tools/top.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/top.cpp')
-rw-r--r--tools/top.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/top.cpp b/tools/top.cpp
index 42e4568..ff5a94b 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();