Skip to content

check_ram2: compare RAM usage percent with better precision

Adrian Schollmeyer requested to merge check_ram2-cmp-precision into master

We previously compared by discarding the decimal places in the percentage altogether. However, on hosts with larger amounts of RAM we might need more precision. This commit scales up comparison percentage values by a factor of 100 to support comparisons with up to two decimal places of precision. This should be enough for most use cases.

Merge request reports