summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-07-30 15:11:19 -0400
committerEliot Horowitz <eliot@10gen.com>2010-07-30 15:11:19 -0400
commit7d5861a7c65eab57f725e9bea9a1532e48835a66 (patch)
tree3d5334c67cc3cd0cc087f53446487900f76819ae /tools
parenta003db68839fa7d161ace0fed91aa2c8b81448da (diff)
downloadmongo-7d5861a7c65eab57f725e9bea9a1532e48835a66.tar.gz
make cells wider
Diffstat (limited to 'tools')
-rw-r--r--tools/stat.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/stat.cpp b/tools/stat.cpp
index 42fff99e3c0..05318a9c564 100644
--- a/tools/stat.cpp
+++ b/tools/stat.cpp
@@ -156,7 +156,6 @@ namespace mongo {
}
void cell( stringstream& ss , string name , unsigned width , const string& val ){
- assert( val.size() <= width );
cellstart( ss , name , width );
ss << setw(width) << val << " ";
}
@@ -204,7 +203,7 @@ namespace mongo {
int w = b.getFieldDotted( "globalLock.currentQueue.writers" ).numberInt();
stringstream temp;
temp << r+w << "|" << r << "|" << w;
- cell( ss , "q t|r|w" , 9 , temp.str() );
+ cell( ss , "q t|r|w" , 10 , temp.str() );
}
cell( ss , "conn" , 5 , b.getFieldDotted( "connections.current" ).numberInt() );
@@ -217,7 +216,7 @@ namespace mongo {
<< setfill('0') << setw(2) << t.tm_min
<< ":"
<< setfill('0') << setw(2) << t.tm_sec;
- cell( ss , "time" , 8 , temp.str() );
+ cell( ss , "time" , 10 , temp.str() );
}
if ( _showHeaders && _rowNum % 20 == 0 ){