use integer arithmetic to calculate memory percentage, to prevent having
to do .to_f