From 1d61bcaabd6bce13a313d343946820f7e3b5217c Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 29 Jul 2010 12:19:48 +0200 Subject: pluto: Use time_monotonic() instead of time() for use time calculation. That's because get_sa_info now returns a monotonic timestamp. --- src/pluto/kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pluto/kernel.c') diff --git a/src/pluto/kernel.c b/src/pluto/kernel.c index 5a4850155..0d8f3ba3f 100644 --- a/src/pluto/kernel.c +++ b/src/pluto/kernel.c @@ -2643,7 +2643,7 @@ bool was_eroute_idle(struct state *st, time_t idle_max, time_t *idle_time) if (get_sa_info(st, TRUE, &bytes, &use_time) && use_time != UNDEFINED_TIME) { - *idle_time = time(NULL) - use_time; + *idle_time = time_monotonic(NULL) - use_time; ret = *idle_time >= idle_max; } -- cgit v1.2.3