From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id EDE2810E7BB for ; Fri, 1 Dec 2023 04:11:51 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Fri, 1 Dec 2023 09:31:17 +0530 Message-Id: <20231201040119.2954812-6-bhanuprakash.modem@intel.com> In-Reply-To: <20231201040119.2954812-1-bhanuprakash.modem@intel.com> References: <20231201040119.2954812-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V3 5/7] 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 71b9e4735..1809164eb 100644 --- a/tests/kms_vrr.c +++ b/tests/kms_vrr.c @@ -327,7 +327,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