Skip to content

Commit

Permalink
Refs #22321: Uncrustified 2
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Gil Aviles <[email protected]>
  • Loading branch information
Javgilavi committed Dec 16, 2024
1 parent 444329e commit 8fa9eec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions examples/cpp/benchmark/PublisherApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ void PublisherApp::on_data_available(
{
std::cout << "Sample with index: '" <<
benchmark_small_.index() << "' (Array " <<
static_cast<int>(benchmark_small_.array().size()) <<
static_cast<int>(benchmark_small_.array().size()) <<
" Bytes) SENT" << std::endl;
}
}
Expand All @@ -298,7 +298,7 @@ void PublisherApp::on_data_available(
{
std::cout << "Sample with index: '" <<
benchmark_medium_.index() << "' (Array " <<
static_cast<int>(benchmark_medium_.data().size()) <<
static_cast<int>(benchmark_medium_.data().size()) <<
" Bytes) RECEIVED" << std::endl;
if ((elapsed.count() >= timeout_ && timeout_ != 0) || (count >= samples_ && samples_ != 0))
{
Expand All @@ -313,7 +313,7 @@ void PublisherApp::on_data_available(
{
std::cout << "Sample with index: '" <<
benchmark_medium_.index() << "' (Array " <<
static_cast<int>(benchmark_medium_.data().size()) <<
static_cast<int>(benchmark_medium_.data().size()) <<
" Bytes) SENT" << std::endl;
}
}
Expand Down Expand Up @@ -475,7 +475,7 @@ bool PublisherApp::publish()
{
std::cout << "First Sample with index: '"
<< benchmark_small_.index() << "' (Array " <<
static_cast<int>(benchmark_small_.array().size())
static_cast<int>(benchmark_small_.array().size())
<< " Bytes) SENT" << std::endl;
}
break;
Expand All @@ -487,7 +487,7 @@ bool PublisherApp::publish()
{
std::cout << "First Sample with index: '"
<< benchmark_medium_.index() << "' (Array " <<
static_cast<int>(benchmark_medium_.data().size())
static_cast<int>(benchmark_medium_.data().size())
<< " Bytes) SENT" << std::endl;
}
break;
Expand All @@ -499,7 +499,7 @@ bool PublisherApp::publish()
{
std::cout << "First Sample with index: '"
<< benchmark_big_.index() << "' (Array " <<
static_cast<int>(benchmark_big_.data().size())
static_cast<int>(benchmark_big_.data().size())
<< " Bytes) SENT" << std::endl;
}
break;
Expand Down
6 changes: 3 additions & 3 deletions examples/cpp/benchmark/SubscriberApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ void SubscriberApp::on_data_available(
{
std::cout << "Sample with index: '" <<
benchmark_small_.index() << "' (Array " <<
static_cast<int>(benchmark_small_.array().size()) <<
static_cast<int>(benchmark_small_.array().size()) <<
" Bytes) SENT" << std::endl;
}
}
Expand All @@ -301,7 +301,7 @@ void SubscriberApp::on_data_available(
{
std::cout << "Sample with index: '" <<
benchmark_medium_.index() << "' (Array " <<
static_cast<int>(benchmark_medium_.data().size()) <<
static_cast<int>(benchmark_medium_.data().size()) <<
" Bytes) RECEIVED" << std::endl;
benchmark_medium_.index(benchmark_medium_.index() + 1);
while (matched_ == 0)
Expand All @@ -325,7 +325,7 @@ void SubscriberApp::on_data_available(
{
std::cout << "Sample with index: '" <<
benchmark_medium_.index() << "' (Array " <<
static_cast<int>(benchmark_medium_.data().size()) <<
static_cast<int>(benchmark_medium_.data().size()) <<
" Bytes) SENT" << std::endl;
}
}
Expand Down

0 comments on commit 8fa9eec

Please sign in to comment.