Permalink
Browse files

Fixing the data type from double to long long

  • Loading branch information...
1 parent 3126c21 commit 9939bf94c302b40681ec0c11da79c887274eb696 @singhsiddharth singhsiddharth committed May 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mongo/tools/loadgenerator.cpp
@@ -177,7 +177,7 @@ void runTest() {
mongo::sleepmillis( 1000 * globalLoadGenOption.durationSeconds );
runner.stop();
mongo::BenchRunStats stats;
- runner.populateStats( &stats, &runner );
+ runner.populateStats( &stats );
long long numEvents =
static_cast<long long>( stats.findOneCounter.getNumEvents() );
@@ -194,7 +194,7 @@ void runTest() {
buf.append( "totalTimeMicros", totalTimeMicros );
buf.append( "insertLatencyMicros", latencyMicros );
- for (map<string, double>::iterator it = stats.opcounters.begin(); it != stats.opcounters.end(); ++it) {
+ for (map<string, long long>::iterator it = stats.opcounters.begin(); it != stats.opcounters.end(); ++it) {
buf.append( (*it).first + "ThroughputPerSec",
(*it).second/globalLoadGenOption.durationSeconds );
}

0 comments on commit 9939bf9

Please sign in to comment.