修改系统内存的check
This commit is contained in:
parent
7a5ec98bdb
commit
38f8cc9ffa
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user