From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0850410E8B3 for ; Fri, 1 Dec 2023 14:27:31 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Fri, 1 Dec 2023 19:47:01 +0530 Message-Id: <20231201141703.3013801-6-bhanuprakash.modem@intel.com> In-Reply-To: <20231201141703.3013801-1-bhanuprakash.modem@intel.com> References: <20231201141703.3013801-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V4 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 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