修改系统内存的check

This commit is contained in:
liang_-123 2021-02-04 09:54:13 +08:00
parent 7a5ec98bdb
commit 38f8cc9ffa

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]