From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D38110E7ED for ; Thu, 7 Dec 2023 07:00:03 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org, ville.syrjala@linux.intel.com, mitulkumar.ajitkumar.golani@intel.com Date: Thu, 7 Dec 2023 12:18:55 +0530 Message-Id: <20231207064900.3328723-6-bhanuprakash.modem@intel.com> In-Reply-To: <20231207064900.3328723-1-bhanuprakash.modem@intel.com> References: <20231207064900.3328723-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V6 05/10] 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 4540d8b4b..db82cd008 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