Skip to content

Commit

Permalink
Refs #4547: [ARS] Simplify running message
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
  • Loading branch information
JesusPoderoso committed Mar 21, 2024
1 parent d8d4973 commit 3e0d744
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions examples/cpp/hello_world/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,8 @@ int main(
}
else
{
switch (config.entity)
{
case CLIParser::EntityKind::PUBLISHER:
std::cout << app_name << " running " << samples << " samples. Please press Ctrl+C to stop the "
<< app_name << " at any time." << std::endl;
break;
case CLIParser::EntityKind::SUBSCRIBER:
default:
std::cout << app_name << " running until " << samples << " samples have been received. Please press "
<< "Ctrl+C to stop the " << app_name << " at any time." << std::endl;
break;
}
std::cout << app_name << " running for " << samples << " samples. Please press Ctrl+C to stop the "
<< app_name << " at any time." << std::endl;
}

stop_app_handler = [&](int signum)
Expand Down

0 comments on commit 3e0d744

Please sign in to comment.