Commit 1cc60149 authored by joreland@mysql.com's avatar joreland@mysql.com

Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb

into mysql.com:/home/jonas/src/mysql-4.1-ndb
parents 3e3a1ff1 d0b730dd
...@@ -115,7 +115,8 @@ main(int argc, const char** argv){ ...@@ -115,7 +115,8 @@ main(int argc, const char** argv){
} }
myRandom48Init(NdbTick_CurrentMillisecond()); myRandom48Init(NdbTick_CurrentMillisecond());
memset(g_times, 0, sizeof(g_times));
g_ndb = new Ndb("TEST_DB"); g_ndb = new Ndb("TEST_DB");
if(g_ndb->init() != 0){ if(g_ndb->init() != 0){
g_err << "init() failed" << endl; g_err << "init() failed" << endl;
...@@ -390,6 +391,6 @@ void ...@@ -390,6 +391,6 @@ void
print_result(){ print_result(){
for(int i = 0; i<P_OP_TYPES; i++){ for(int i = 0; i<P_OP_TYPES; i++){
g_err.println("%s avg: %u us/row", g_ops[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));
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment