From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 218A010E1E9 for ; Mon, 4 Dec 2023 07:52:12 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org, vidya.srinivas@intel.com Date: Mon, 4 Dec 2023 13:11:07 +0530 Message-Id: <20231204074111.3167784-6-bhanuprakash.modem@intel.com> In-Reply-To: <20231204074111.3167784-1-bhanuprakash.modem@intel.com> References: <20231204074111.3167784-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V5 5/9] tests/kms_vrr: Fix the logic to calculate expected rate List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Fix the condition check to measure the expected refresh rate. Signed-off-by: Bhanuprakash Modem --- tests/kms_vrr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c index 2918f7860..422d89073 100644 --- a/tests/kms_vrr.c +++ b/tests/kms_vrr.c @@ -329,7 +329,7 @@ flip_and_measure(data_t *data, igt_output_t *output, enum pipe pipe, * difference between 144Hz and 143Hz which should give this * enough accuracy for most use cases. */ - if ((rate_ns < vtest_ns.min) && (rate_ns >= vtest_ns.max)) + if ((rate_ns <= vtest_ns.min) && (rate_ns >= vtest_ns.max)) diff_ns = rate_ns; else diff_ns = vtest_ns.max; -- 2.40.0