Permalink
Browse files

remove warnings on some version of gcc

  • Loading branch information...
1 parent ecf2161 commit 55cb15d2a7603f78240a47c4ffe77d8585d01001 @erh erh committed Nov 29, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 tools/stat.cpp
View
@@ -146,7 +146,7 @@ namespace mongo {
}
int run() {
- _statUtil.setSeconds( getParam( "sleep" , _statUtil.getSeconds() ) );
+ _statUtil.setSeconds( getParam( "sleep" , 1 ) );
_statUtil.setAll( hasParam( "all" ) );
if ( _many )
return runMany();
@@ -206,7 +206,7 @@ namespace mongo {
return -1;
while ( rowCount == 0 || rowNum < rowCount ) {
- sleepsecs(_statUtil.getSeconds());
+ sleepsecs((int)ceil(_statUtil.getSeconds()));
BSONObj now;
try {
now = stats();
@@ -414,7 +414,7 @@ namespace mongo {
bool discover = hasParam( "discover" );
while ( 1 ) {
- sleepsecs( _statUtil.getSeconds() );
+ sleepsecs( (int)ceil(_statUtil.getSeconds()) );
// collect data
vector<Row> rows;

0 comments on commit 55cb15d

Please sign in to comment.