pluto: Use time_monotonic() instead of time() for use time calculation.

That's because get_sa_info now returns a monotonic timestamp.
This commit is contained in:
Tobias Brunner
2010-09-02 19:04:21 +02:00
parent 91f44a8bfc
commit 1d61bcaabd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -782,7 +782,7 @@ void fmt_state(bool all, struct state *st, time_t n, char *state_buf,
}
if (st->st_esp.present)
{
time_t now = time(NULL);
time_t now = time_monotonic(NULL);
add_said(&c->spd.that.host_addr, st->st_esp.attrs.spi, SA_ESP);
add_sa_info(st, FALSE);