From 38f8cc9ffad90c211c259c5588ccae85f057b2e2 Mon Sep 17 00:00:00 2001 From: liang_-123 Date: Thu, 4 Feb 2021 09:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B3=BB=E7=BB=9F=E5=86=85?= =?UTF-8?q?=E5=AD=98=E7=9A=84check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/local/LocalCheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/local/LocalCheck.py b/script/local/LocalCheck.py index 64782a4..82a9efb 100644 --- a/script/local/LocalCheck.py +++ b/script/local/LocalCheck.py @@ -253,8 +253,8 @@ def checkSysctlParameter(kernelParameter, isSet): expected_max = float(kernelParameter[key].split()[0]) * 1.1 if (int(output.split()[0]) > expected_max or int(output.split()[0]) < expected_min): - resultList.append(1) - g_logger.log(" Abnormal reason: variable '%s'" + resultList.append(2) + g_logger.log(" Warning reason: variable '%s'" " RealValue '%s' ExpectedValue '%s'." % (key, output, kernelParameter[key])) setParameterList[key] = kernelParameter[key]