Commit 02930e7b authored by Joanne Hugé's avatar Joanne Hugé

Replace timestamp option by letter t

parent d2142cdf
...@@ -147,7 +147,7 @@ int main(int argc, char *argv[]) { ...@@ -147,7 +147,7 @@ int main(int argc, char *argv[]) {
static void process_options(int argc, char *argv[], thread_param_t *param, static void process_options(int argc, char *argv[], thread_param_t *param,
main_param_t *main_param) { main_param_t *main_param) {
for (;;) { for (;;) {
int c = getopt(argc, argv, "aehf:i:l:p:q:r:"); int c = getopt(argc, argv, "aef:i:l:p:q:r:t");
if (c == -1) break; if (c == -1) break;
...@@ -158,9 +158,6 @@ static void process_options(int argc, char *argv[], thread_param_t *param, ...@@ -158,9 +158,6 @@ static void process_options(int argc, char *argv[], thread_param_t *param,
case 'e': case 'e':
param->enable_etf = 1; param->enable_etf = 1;
break; break;
case 'h':
param->enable_timestamps = 1;
break;
case 'f': case 'f':
strcpy(param->network_if, optarg); strcpy(param->network_if, optarg);
break; break;
...@@ -179,6 +176,9 @@ static void process_options(int argc, char *argv[], thread_param_t *param, ...@@ -179,6 +176,9 @@ static void process_options(int argc, char *argv[], thread_param_t *param,
case 'r': case 'r':
main_param->refresh_rate = atoi(optarg); main_param->refresh_rate = atoi(optarg);
break; break;
case 't':
param->enable_timestamps = 1;
break;
default: default:
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment