summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-07-18 02:50:15 +0000
committerRoland McGrath <roland@gnu.org>2005-07-18 02:50:15 +0000
commitd122043d22b001cff2d2457bd03c82fdadf5de1d (patch)
tree7a5a382484e78a6ec2171f67b7e09572e7008f66
parent6bdd7b167ed9becf3b3731a3b147a6c6a4631bd8 (diff)
2005-04-27 Ulrich Drepper <drepper@redhat.com>
[BZ #1094] * nscd/connections.c (nscd_run): Use time() value in prune_cache call, not timeout value, since the latter might be from another clock.
-rw-r--r--nscd/connections.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index 850ddfa67d..b993bf1a32 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -1171,8 +1171,7 @@ handle_request: request received (Version = %d)"), req.version);
/* The pthread_cond_timedwait() call timed out. It is time
to clean up the cache. */
assert (my_number < lastdb);
- prune_cache (&dbs[my_number],
- prune_ts.tv_sec + (prune_ts.tv_nsec >= 500000000));
+ prune_cache (&dbs[my_number], time (NULL));
if (clock_gettime (timeout_clock, &prune_ts) == -1)
/* Should never happen. */