diff --git a/src/donar_client.c b/src/donar_client.c index 75fabc9..dd57647 100644 --- a/src/donar_client.c +++ b/src/donar_client.c @@ -106,8 +106,8 @@ int donar_client_stream_repair(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fprintf(stdout, "[%s][donar-client] Socks5 has already been retriggered for port %d\n", current_human_datetime (), port); return 1; } else { - fprintf(stderr, "[%s][donar-client] We only removed 1 link and not 2 for port %d, strange behaviour, exiting...\n", current_human_datetime (), port); - exit(EXIT_FAILURE); + fprintf(stderr, "[%s][donar-client] We only removed 1 link and not 2 for port %d\n", current_human_datetime (), port); + //exit(EXIT_FAILURE); } } diff --git a/src/measure.c b/src/measure.c index 630978e..b22ac24 100644 --- a/src/measure.c +++ b/src/measure.c @@ -8,7 +8,7 @@ void measure_parse(int size, struct measure_conf* mc) { exit(EXIT_FAILURE); } struct measure_packet* head = (struct measure_packet*) mc->payload; - if (clock_gettime(CLOCK_REALTIME, &curr) == -1){ + if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1){ perror("clock_gettime error"); exit(EXIT_FAILURE); } @@ -58,7 +58,7 @@ struct measure_packet* measure_generate(struct measure_conf* mc) { head->counter = mc->counter; head->is_echo = mc->is_rtt && !mc->is_server; head->flag = 0; - if (clock_gettime(CLOCK_REALTIME, &head->emit_time) == -1) { + if (clock_gettime(CLOCK_MONOTONIC, &head->emit_time) == -1) { perror("clock_gettime error"); exit(EXIT_FAILURE); } @@ -70,7 +70,7 @@ void measure_next_tick(struct measure_conf *mc, struct timespec *next) { struct timespec now, *sent_at = &head->emit_time; mc->counter = head->counter; - if (clock_gettime(CLOCK_REALTIME, &now) == -1) { + if (clock_gettime(CLOCK_MONOTONIC, &now) == -1) { perror("clock_gettime error"); exit(EXIT_FAILURE); }