variables

This commit is contained in:
pushsla 2018-11-24 16:40:01 +03:00
parent 374c53c2a6
commit 8453e04b11

2
nohang
View File

@ -805,7 +805,7 @@ def calculate_percent(arg_key):
# mem_min_sigterm_percent is clean and valid float percentage. Can translate into Kb
mem_min_kb = mem_min_percent / 100 * mem_total
mem_min_mb = round(mem_min_sigterm_kb / 1024)
mem_min_mb = round(mem_min_kb / 1024)
elif mem_min.endswith('M'):
mem_min_mb = string_to_float_convert_test(mem_min[:-1].strip())