Skip to content

Commit

Permalink
GNU/Linux ping has different CLI options
Browse files Browse the repository at this point in the history
  • Loading branch information
retifrav committed Nov 27, 2021
1 parent 0bc9466 commit a04eab1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ QStringList getArgs4ping()
#if defined(Q_OS_WIN)
return QStringList() << "-n" << "1"
<< "-w" << "1000";
#else
#elif defined(Q_OS_MACOS)
return QStringList() << "-c" << "1"
<< "-t" << "1";
#else // GNU/Linux
return QStringList() << "-c" << "1"
<< "-W" << "1";
#endif
}

Expand Down

0 comments on commit a04eab1

Please sign in to comment.