~ubuntu-branches/debian/stretch/haproxy/stretch

« back to all changes in this revision

Viewing changes to src/fd.c

  • Committer: Bazaar Package Importer
  • Author(s): Christo Buschek
  • Date: 2011-03-11 12:41:59 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110311124159-9foyp4juf1ilqipo
Tags: 1.4.13-1
* New maintainer upload (Closes: #615246)
* New upstream release
* Standards-version goes 3.9.1 (no change)
* Added patch bashism (Closes: #581109)
* Added a README.source file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
        last = next = -1;
120
120
        while (1) {
121
121
                for (p = 0; p < nbpollers; p++) {
122
 
                        if (!bp || (pollers[p].pref > bp->pref))
123
 
                                bp = &pollers[p];
124
122
                        if ((next < 0 || pollers[p].pref > next)
125
 
                            && (last < 0 || pollers[p].pref < last))
 
123
                            && (last < 0 || pollers[p].pref < last)) {
126
124
                                next = pollers[p].pref;
 
125
                                if (!bp || (pollers[p].pref > bp->pref))
 
126
                                        bp = &pollers[p];
 
127
                        }
127
128
                }
128
129
 
129
130
                if (next == -1)
140
141
                                        fprintf(out, " test result OK");
141
142
                                        if (next > 0)
142
143
                                                usable++;
143
 
                                } else
 
144
                                } else {
144
145
                                        fprintf(out, " test result FAILED");
 
146
                                        if (bp == &pollers[p])
 
147
                                                bp = NULL;
 
148
                                }
145
149
                                fprintf(out, "\n");
146
150
                        }
147
151
                }