diff options
author | Christian Hesse <mail@eworm.de> | 2014-10-05 21:19:25 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-10-05 21:19:25 +0200 |
commit | 73dd8a4f79ed2290d645f480ef0efade51aea403 (patch) | |
tree | c11e44fc71e78227baac31e6b71f75343b87902b /pacredir.c | |
parent | 6b4dbbdd3728bcbd99228b4a9cce1db0b24ae95d (diff) | |
download | paccache-73dd8a4f79ed2290d645f480ef0efade51aea403.tar.gz paccache-73dd8a4f79ed2290d645f480ef0efade51aea403.tar.zst |
try to guess the fastest server for db files as well
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |