!50 放宽对系统参数vm.min_free_kbytes的校验要求

Merge pull request !50 from liang/master
This commit is contained in:
hangjin2020 2021-02-04 10:03:01 +08:00 committed by Gitee
commit b53952aa62

View File

@ -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]