@@ -125,7 +125,7 @@ client::client(struct event_base *event_base, benchmark_config *config,
125125 if (!setup_client (config, protocol, obj_gen)) {
126126 return ;
127127 }
128-
128+
129129 benchmark_debug_log (" new client %p successfully set up.\n " , this );
130130 m_initialized = true ;
131131}
@@ -203,7 +203,7 @@ bool client::finished(void)
203203 return true ;
204204 if (m_config->test_time > 0 && m_stats.get_duration () >= m_config->test_time )
205205 return true ;
206- return false ;
206+ return false ;
207207}
208208
209209void client::set_start_time () {
@@ -333,7 +333,7 @@ void client::create_request(struct timeval timestamp, unsigned int conn_id)
333333
334334 assert (key != NULL );
335335 assert (keylen > 0 );
336-
336+
337337 m_keylist->add_key (key, keylen);
338338 }
339339
@@ -353,14 +353,14 @@ void client::create_request(struct timeval timestamp, unsigned int conn_id)
353353 } else {
354354 // overlap counters
355355 m_get_ratio_count = m_set_ratio_count = 0 ;
356- }
356+ }
357357}
358358
359359int client::prepare (void )
360360{
361361 if (MAIN_CONNECTION == NULL )
362362 return -1 ;
363-
363+
364364 int ret = this ->connect ();
365365 if (ret < 0 ) {
366366 benchmark_error_log (" prepare: failed to connect, test aborted.\n " );
@@ -522,7 +522,7 @@ bool verify_client::finished(void)
522522
523523// /////////////////////////////////////////////////////////////////////////
524524
525- client_group::client_group (benchmark_config* config, abstract_protocol *protocol, object_generator* obj_gen) :
525+ client_group::client_group (benchmark_config* config, abstract_protocol *protocol, object_generator* obj_gen) :
526526 m_base(NULL ), m_config(config), m_protocol(protocol), m_obj_gen(obj_gen)
527527{
528528 m_base = event_base_new ();
@@ -561,7 +561,7 @@ int client_group::create_clients(int num)
561561 delete c;
562562 return i;
563563 }
564-
564+
565565 m_clients.push_back (c);
566566 }
567567
@@ -625,14 +625,14 @@ unsigned long int client_group::get_duration_usec(void)
625625 float factor = ((float )(thread_counter - 1 ) / thread_counter);
626626 duration = factor * duration + (float )(*i)->get_stats ()->get_duration_usec () / thread_counter ;
627627 }
628-
628+
629629 return duration;
630630}
631631
632632void client_group::merge_run_stats (run_stats* target)
633633{
634634 assert (target != NULL );
635- unsigned int iteration_counter = 1 ;
635+ unsigned int iteration_counter = 1 ;
636636 for (std::vector<client*>::iterator i = m_clients.begin (); i != m_clients.end (); i++) {
637637 target->merge (*(*i)->get_stats (), iteration_counter++);
638638 }
@@ -649,5 +649,5 @@ void client_group::write_client_stats(const char *prefix)
649649 if (!(*i)->get_stats ()->save_csv (filename, m_config)) {
650650 fprintf (stderr, " error: %s: failed to write client stats.\n " , filename);
651651 }
652- }
652+ }
653653}
0 commit comments