File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/agent/Core/ApplicationPool/Group Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ Group::findBestProcessPreferringStickySessionId(unsigned int id) const {
152152 } else if (!process->isTotallyBusy ()
153153 && (
154154 bestProcess == nullptr
155- || process->generation > bestProcess->generation
156- || (process->generation == bestProcess->generation && process->spawnStartTime < bestProcess->spawnStartTime )
157- || (process->generation == bestProcess->generation && process->spawnStartTime == bestProcess->spawnStartTime && process->busyness () < bestProcess->busyness () )
155+ || ( process->busyness () < bestProcess->busyness ())
156+ || (process->busyness () == bestProcess->busyness () && process->generation > bestProcess->generation )
157+ || (process->busyness () == bestProcess->busyness () && process->generation == bestProcess->generation && process->spawnStartTime < bestProcess->spawnStartTime )
158158 )
159159 ) {
160160 bestProcess = process;
@@ -189,9 +189,9 @@ Group::findBestProcess(const ProcessList &processes) const {
189189 if (!process->isTotallyBusy ()
190190 && (
191191 bestProcess == nullptr
192- || process->generation > bestProcess->generation
193- || (process->generation == bestProcess->generation && process->spawnStartTime < bestProcess->spawnStartTime )
194- || (process->generation == bestProcess->generation && process->spawnStartTime == bestProcess->spawnStartTime && process->busyness () < bestProcess->busyness () )
192+ || ( process->busyness () < bestProcess->busyness ())
193+ || (process->busyness () == bestProcess->busyness () && process->generation > bestProcess->generation )
194+ || (process->busyness () == bestProcess->busyness () && process->generation == bestProcess->generation && process->spawnStartTime < bestProcess->spawnStartTime )
195195 )
196196 ) {
197197 bestProcess = process;
You can’t perform that action at this time.
0 commit comments