aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pacredir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index cc8ae03..fbb09bd 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -444,7 +444,8 @@ static int ahc_echo(void * cls,
if (request->http_code == MHD_HTTP_OK &&
/* for db files choose the most recent server */
- ((dbfile == 1 && request->last_modified > last_modified) ||
+ ((dbfile == 1 && request->last_modified >= last_modified &&
+ request->time_total < time_total) ||
/* for packages try to guess the fastest server */
(dbfile == 0 && request->time_total < time_total))) {
if (url != NULL)