summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2004-09-06 15:17:09 +0200
committerunknown <joreland@mysql.com>2004-09-06 15:17:09 +0200
commitb306777f73cd26a33955742e407e82adc6180742 (patch)
treef20f50009cdee8e5d4499f81c6acdec3a51624b6
parent5cccb45385438462bb1212eec90b43cf37537306 (diff)
parented047355435395c414b38140503935bb2e3ca266 (diff)
downloadmariadb-git-b306777f73cd26a33955742e407e82adc6180742.tar.gz
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb
into mysql.com:/home/jonas/src/mysql-4.1-ndb
-rw-r--r--ndb/test/ndbapi/testReadPerf.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ndb/test/ndbapi/testReadPerf.cpp b/ndb/test/ndbapi/testReadPerf.cpp
index ea39e92558a..412661c4ff8 100644
--- a/ndb/test/ndbapi/testReadPerf.cpp
+++ b/ndb/test/ndbapi/testReadPerf.cpp
@@ -115,7 +115,8 @@ main(int argc, const char** argv){
}
myRandom48Init(NdbTick_CurrentMillisecond());
-
+ memset(g_times, 0, sizeof(g_times));
+
g_ndb = new Ndb("TEST_DB");
if(g_ndb->init() != 0){
g_err << "init() failed" << endl;
@@ -390,6 +391,6 @@ void
print_result(){
for(int i = 0; i<P_OP_TYPES; i++){
g_err.println("%s avg: %u us/row", g_ops[i],
- (1000*g_times[i])/g_paramters[P_RANGE].value);
+ (1000*g_times[i])/(g_paramters[P_RANGE].value*g_paramters[P_LOOPS].value));
}
}