@@ -241,8 +241,8 @@ void PublisherApp::on_data_available(
241241 {
242242 if ((info.instance_state == ALIVE_INSTANCE_STATE ) && info.valid_data )
243243 {
244- std::cout << " Sample with index: '" <<
245- benchmark_.index () << " ' (Array 0 Bytes) RECEIVED" << std::endl;
244+ std::cout << " Sample with index: '"
245+ << benchmark_.index () << " ' (Array 0 Bytes) RECEIVED" << std::endl;
246246 if ((elapsed.count () >= timeout_ && timeout_ != 0 ) || (count >= samples_ && samples_ != 0 ))
247247 {
248248 cv_.notify_one ();
@@ -254,8 +254,8 @@ void PublisherApp::on_data_available(
254254
255255 if ((RETCODE_OK == writer_->write (&benchmark_)) == true )
256256 {
257- std::cout << " Sample with index: '" <<
258- benchmark_.index () << " ' (Array 0 Bytes) SENT" << std::endl;
257+ std::cout << " Sample with index: '"
258+ << benchmark_.index () << " ' (Array 0 Bytes) SENT" << std::endl;
259259 }
260260 }
261261 }
@@ -266,9 +266,10 @@ void PublisherApp::on_data_available(
266266 {
267267 if ((info.instance_state == ALIVE_INSTANCE_STATE ) && info.valid_data )
268268 {
269- std::cout << " Sample with index: '" <<
270- benchmark_small_.index () << " ' (Array " << static_cast <int >(benchmark_small_.array ().size ()) <<
271- " Bytes) RECEIVED" << std::endl;
269+ std::cout << " Sample with index: '"
270+ << benchmark_small_.index () << " ' (Array "
271+ << static_cast <int >(benchmark_small_.array ().size ())
272+ << " Bytes) RECEIVED" << std::endl;
272273 if ((elapsed.count () >= timeout_ && timeout_ != 0 ) || (count >= samples_ && samples_ != 0 ))
273274 {
274275 cv_.notify_one ();
@@ -280,10 +281,10 @@ void PublisherApp::on_data_available(
280281
281282 if ((RETCODE_OK == writer_->write (&benchmark_small_)) == true )
282283 {
283- std::cout << " Sample with index: '" <<
284- benchmark_small_.index () << " ' (Array " <<
285- static_cast <int >(benchmark_small_.array ().size ()) <<
286- " Bytes) SENT" << std::endl;
284+ std::cout << " Sample with index: '"
285+ << benchmark_small_.index () << " ' (Array "
286+ << static_cast <int >(benchmark_small_.array ().size ())
287+ << " Bytes) SENT" << std::endl;
287288 }
288289 }
289290 }
@@ -294,10 +295,10 @@ void PublisherApp::on_data_available(
294295 {
295296 if ((info.instance_state == ALIVE_INSTANCE_STATE ) && info.valid_data )
296297 {
297- std::cout << " Sample with index: '" <<
298- benchmark_medium_.index () << " ' (Array " <<
299- static_cast <int >(benchmark_medium_.data ().size ()) <<
300- " Bytes) RECEIVED" << std::endl;
298+ std::cout << " Sample with index: '"
299+ << benchmark_medium_.index () << " ' (Array "
300+ << static_cast <int >(benchmark_medium_.data ().size ())
301+ << " Bytes) RECEIVED" << std::endl;
301302 if ((elapsed.count () >= timeout_ && timeout_ != 0 ) || (count >= samples_ && samples_ != 0 ))
302303 {
303304 cv_.notify_one ();
@@ -309,10 +310,10 @@ void PublisherApp::on_data_available(
309310
310311 if ((RETCODE_OK == writer_->write (&benchmark_medium_)) == true )
311312 {
312- std::cout << " Sample with index: '" <<
313- benchmark_medium_.index () << " ' (Array " <<
314- static_cast <int >(benchmark_medium_.data ().size ()) <<
315- " Bytes) SENT" << std::endl;
313+ std::cout << " Sample with index: '"
314+ << benchmark_medium_.index () << " ' (Array "
315+ << static_cast <int >(benchmark_medium_.data ().size ())
316+ << " Bytes) SENT" << std::endl;
316317 }
317318 }
318319 }
@@ -323,9 +324,10 @@ void PublisherApp::on_data_available(
323324 {
324325 if ((info.instance_state == ALIVE_INSTANCE_STATE ) && info.valid_data )
325326 {
326- std::cout << " Sample with index: '" <<
327- benchmark_big_.index () << " ' (Array " << static_cast <int >(benchmark_big_.data ().size ()) <<
328- " Bytes) RECEIVED" << std::endl;
327+ std::cout << " Sample with index: '"
328+ << benchmark_big_.index () << " ' (Array "
329+ << static_cast <int >(benchmark_big_.data ().size ())
330+ << " Bytes) RECEIVED" << std::endl;
329331 if ((elapsed.count () >= timeout_ && timeout_ != 0 ) || (count >= samples_ && samples_ != 0 ))
330332 {
331333 cv_.notify_one ();
@@ -337,9 +339,10 @@ void PublisherApp::on_data_available(
337339
338340 if ((RETCODE_OK == writer_->write (&benchmark_big_)) == true )
339341 {
340- std::cout << " Sample with index: '" <<
341- benchmark_big_.index () << " ' (Array " << static_cast <int >(benchmark_big_.data ().size ()) <<
342- " Bytes) SENT" << std::endl;
342+ std::cout << " Sample with index: '"
343+ << benchmark_big_.index () << " ' (Array "
344+ << static_cast <int >(benchmark_big_.data ().size ())
345+ << " Bytes) SENT" << std::endl;
343346 }
344347 }
345348 }
@@ -472,8 +475,8 @@ bool PublisherApp::publish()
472475 if (ret == true )
473476 {
474477 std::cout << " First Sample with index: '"
475- << benchmark_small_.index () << " ' (Array " <<
476- static_cast <int >(benchmark_small_.array ().size ())
478+ << benchmark_small_.index () << " ' (Array "
479+ << static_cast <int >(benchmark_small_.array ().size ())
477480 << " Bytes) SENT" << std::endl;
478481 }
479482 break ;
@@ -484,8 +487,8 @@ bool PublisherApp::publish()
484487 if (ret == true )
485488 {
486489 std::cout << " First Sample with index: '"
487- << benchmark_medium_.index () << " ' (Array " <<
488- static_cast <int >(benchmark_medium_.data ().size ())
490+ << benchmark_medium_.index () << " ' (Array "
491+ << static_cast <int >(benchmark_medium_.data ().size ())
489492 << " Bytes) SENT" << std::endl;
490493 }
491494 break ;
@@ -496,8 +499,8 @@ bool PublisherApp::publish()
496499 if (ret == true )
497500 {
498501 std::cout << " First Sample with index: '"
499- << benchmark_big_.index () << " ' (Array " <<
500- static_cast <int >(benchmark_big_.data ().size ())
502+ << benchmark_big_.index () << " ' (Array "
503+ << static_cast <int >(benchmark_big_.data ().size ())
501504 << " Bytes) SENT" << std::endl;
502505 }
503506 break ;
0 commit comments