diff options
Diffstat (limited to 'util/goodies.h')
-rw-r--r-- | util/goodies.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/goodies.h b/util/goodies.h index 4689e32ec4d..9078dcb49ee 100644 --- a/util/goodies.h +++ b/util/goodies.h @@ -325,7 +325,7 @@ namespace mongo { public: ProgressMeter( long long total , int secondsBetween = 3 , int checkInterval = 100 ) : _total( total ) , _secondsBetween( secondsBetween ) , _checkInterval( checkInterval ) , - _done(0) , _hits(0) , _lastTime( time(0) ){ + _done(0) , _hits(0) , _lastTime( (int) time(0) ){ } void hit( int n = 1 ){ @@ -334,7 +334,7 @@ namespace mongo { if ( _hits % _checkInterval ) return; - int t = time(0); + int t = (int) time(0); if ( t - _lastTime < _secondsBetween ) return; |