Skip to content
Snippets Groups Projects
Commit 53fbe76c authored by dnsadmin's avatar dnsadmin
Browse files

Statisztikai lehetőség eltávolítása (#14)

parent 320f69a3
No related branches found
No related tags found
No related merge requests found
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
#define COMMAND_H #define COMMAND_H
/** /**
* Enum of possible command which may be sended to a server. * Enum of possible commands which may be sended to a server.
*/ */
enum command enum command
{ {
STATISTICS, KILL KILL
}; };
/** /**
...@@ -24,7 +24,6 @@ enum command ...@@ -24,7 +24,6 @@ enum command
const char *get_readable_command(command c) { const char *get_readable_command(command c) {
switch(c) switch(c)
{ {
case STATISTICS: return "statistics";
case KILL: return "kill"; case KILL: return "kill";
default: return ""; default: return "";
} }
......
...@@ -37,7 +37,7 @@ int main(int argc, char *argv[]) ...@@ -37,7 +37,7 @@ int main(int argc, char *argv[])
getcwd(working_dir, PATH_MAX-1 ); getcwd(working_dir, PATH_MAX-1 );
bool run_as_daemon = false; bool run_as_daemon = false;
std::vector<command> command_list; std::vector<command> command_list;
while((cli_option = getopt (argc, argv, "dskvht:w:")) != -1) while((cli_option = getopt (argc, argv, "dkvt:w:h")) != -1)
{ {
int ti = 0; int ti = 0;
switch(cli_option) switch(cli_option)
...@@ -45,9 +45,6 @@ int main(int argc, char *argv[]) ...@@ -45,9 +45,6 @@ int main(int argc, char *argv[])
case 'd': case 'd':
run_as_daemon = true; run_as_daemon = true;
break; break;
case 's':
command_list.push_back(STATISTICS);
break;
case 'k': case 'k':
command_list.push_back(KILL); command_list.push_back(KILL);
break; break;
...@@ -198,7 +195,6 @@ In daemon mode, the working directory must contain the dns.db file. ...@@ -198,7 +195,6 @@ In daemon mode, the working directory must contain the dns.db file.
Options: Options:
-d Run as daemon -d Run as daemon
-t threads Number of threads to start. Only makes sense with -d. -t threads Number of threads to start. Only makes sense with -d.
-s Statistics from daemon
-k Kill daemon -k Kill daemon
-w workind_dir Set working directory. Absolute path needed. -w workind_dir Set working directory. Absolute path needed.
If not set, the actual PWD will be used. If not set, the actual PWD will be used.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment