summaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-04-28 09:10:12 +0000
committerJakub Jelinek <jakub@redhat.com>2005-04-28 09:10:12 +0000
commit7647ac797860753c61ec87cbf3057622714bf89d (patch)
tree267195c1d8ddc0821cea0014999909d6944043e6 /nscd
parent484a05dfdb542a31f146b27f7f8cd8ef51ea2d55 (diff)
Updated to fedora-glibc-20050428T0846
Diffstat (limited to 'nscd')
-rw-r--r--nscd/connections.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index 1f61ee1044..818de977d5 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -1176,8 +1176,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. */