Round off SYSTEM_RESERVED_MEMORY if value is in decimal
@@ -40,6 +40,7 @@ contents:
if (($total_memory >= 0)); then # 2% of any memory above 128GB
recommended_systemreserved_memory=$(echo $recommended_systemreserved_memory $(echo $total_memory 0.02 | awk '{print $1 * $2}') | awk '{print $1 + $2}')
fi
+ recommended_systemreserved_memory=$(echo $recommended_systemreserved_memory | awk '{printf("%d\n",$1 + 0.5)}') # Round off so we avoid float conversions
echo "SYSTEM_RESERVED_MEMORY=${recommended_systemreserved_memory}Gi">> ${NODE_SIZES_ENV}
}
function dynamic_cpu_sizing {
