Skip to content

check_ram2: Fix awk int overflow on too much RAM

Adrian Schollmeyer requested to merge 4-check_ram2-int-overflow-fix into master

awk is unable to handle more than a 32 bit integer value in its calculations, yielding invalid results if the maximum int32 value is exceeded. This commit drops the calculation in the awk statement and instead performs it in bc, which supports more than 32 bit integers.

Closes: #4 (closed)

Merge request reports