summaryrefslogtreecommitdiff
path: root/util/goodies.h
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-10-06 16:17:11 -0400
committerDwight <dmerriman@gmail.com>2009-10-06 16:17:11 -0400
commit0c9212038d87cdbac7cfd39ee93a099b6a291e61 (patch)
treea73eaf4b64b07c6995a5d450570e8b04e7ad00fe /util/goodies.h
parent32d147df9c9c3ca2e8d4cb1e7ed6af89017ccce3 (diff)
downloadmongo-0c9212038d87cdbac7cfd39ee93a099b6a291e61.tar.gz
small cleanups
Diffstat (limited to 'util/goodies.h')
-rw-r--r--util/goodies.h4
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;