Skip to content

Commit

Permalink
address a clang check warning
Browse files Browse the repository at this point in the history
  • Loading branch information
opcm authored Dec 5, 2023
1 parent 45a845e commit a3f7da9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pcm-sensor-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3181,7 +3181,9 @@ void printHelpText( std::string const & programName ) {
std::cout << " -p portnumber : Run on port <portnumber> (default port is " << DEFAULT_HTTP_PORT << ")\n";
std::cout << " -r|--reset : Reset programming of the performance counters.\n";
std::cout << " -D|--debug level : level = 0: no debug info, > 0 increase verbosity.\n";
#ifndef __APPLE__
std::cout << " -R|--real-time : If possible the daemon will run with real time\n";
#endif
std::cout << " priority, could be useful under heavy load to \n";
std::cout << " stabilize the async counter fetching.\n";
#if defined (USE_SSL)
Expand Down Expand Up @@ -3209,7 +3211,9 @@ int mainThrows(int argc, char * argv[]) {
bool useSSL = false;
#endif
bool forcedProgramming = false;
#ifndef __APPLE__
bool useRealtimePriority = false;
#endif
bool forceRTMAbortMode = false;
unsigned short port = 0;
unsigned short debug_level = 0;
Expand Down Expand Up @@ -3270,10 +3274,12 @@ int mainThrows(int argc, char * argv[]) {
throw std::runtime_error( "main: Error no debug level argument given" );
}
}
#ifndef __APPLE__
else if ( check_argument_equals( argv[i], {"-R", "--real-time"} ) )
{
useRealtimePriority = true;
}
#endif
else if ( check_argument_equals( argv[i], {"--help", "-h", "/h"} ) )
{
printHelpText( argv[0] );
Expand Down

0 comments on commit a3f7da9

Please sign in to comment.