summaryrefslogtreecommitdiffstats
path: root/pacredir.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-10-11 09:59:13 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-10-11 09:59:13 +0200
commit2a3198a9c9e4613fac20557458c7b0a99d88b786 (patch)
tree47deb2e680568b1e414290e16fd11b12f199a62d /pacredir.c
parentd1fb448d92233686c1ee09548938372a3d3d7766 (diff)
downloadpacredir-2a3198a9c9e4613fac20557458c7b0a99d88b786.tar.gz
pacredir-2a3198a9c9e4613fac20557458c7b0a99d88b786.tar.zst
format condition
no functional change...
Diffstat (limited to 'pacredir.c')
-rw-r--r--pacredir.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pacredir.c b/pacredir.c
index 1677172..b17510c 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -370,8 +370,12 @@ static int ahc_echo(void * cls,
/* try to find a server with most recent file */
while (tmphosts->host != NULL) {
/* skip host if offline or had a bad request within last BADTIME seconds */
- if ((dbfile == 1 && (tmphosts->pacdbserve.online == 0 || tmphosts->pacdbserve.badtime + tmphosts->pacdbserve.badcount * BADTIME > tv.tv_sec)) ||
- (dbfile == 0 && (tmphosts->pacserve.online == 0 || tmphosts->pacserve.badtime + tmphosts->pacserve.badcount * BADTIME > tv.tv_sec))) {
+ if ((dbfile == 1 &&
+ (tmphosts->pacdbserve.online == 0 ||
+ tmphosts->pacdbserve.badtime + tmphosts->pacdbserve.badcount * BADTIME > tv.tv_sec)) ||
+ (dbfile == 0 &&
+ (tmphosts->pacserve.online == 0 ||
+ tmphosts->pacserve.badtime + tmphosts->pacserve.badcount * BADTIME > tv.tv_sec))) {
tmphosts = tmphosts->next;
continue;
}