commit | 4f9c1418d71f20569de67f1c6572d7a067412493 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Sep 21 14:03:18 2016 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Sep 21 14:10:04 2016 +0200 |
tree | 0b3e08da961d123e37387dfd28f27b7f4bb1e92b | |
parent | 70262842b0058759969713f3345138d91f089e31 [diff] [blame] |
session BUGFIX monotonic clock cannot be used for absolute time value
diff --git a/src/session.c b/src/session.c index ba55dbc..97d561e 100644 --- a/src/session.c +++ b/src/session.c
@@ -49,9 +49,7 @@ int nc_gettimespec(struct timespec *ts) { -#ifdef CLOCK_MONOTONIC - return clock_gettime(CLOCK_MONOTONIC, ts); -#elif defined CLOCK_REALTIME +#ifdef CLOCK_REALTIME return clock_gettime(CLOCK_REALTIME, ts); #else int rc;