]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "Sync conditions with trunk_manage"
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 12 May 2020 17:07:07 +0000 (12:07 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 12 May 2020 17:07:13 +0000 (12:07 -0500)
This reverts commit 21da2ae9a510b95d10f1300730188ffbbc255dd1.

src/lib/server/trunk.c

index 43cc65b6db62a7331313182524aa34c51b0c9202..38fc6a83bfdd50456a9fee59fd5275feee292d43 100644 (file)
@@ -4210,7 +4210,7 @@ static uint32_t trunk_requests_per_connection(uint16_t *conn_count_out, uint32_t
                /*
                 *      Edge - Above target to below target (too few requests per conn - close some)
                 */
-               if (trunk->pub.last_below_target < trunk->pub.last_above_target) trunk->pub.last_below_target = now;
+               if (trunk->pub.last_below_target <= trunk->pub.last_above_target) trunk->pub.last_below_target = now;
        }
 
 done: