How its calculated here doesn't change anything elsewhere. Where the decimal points is doesn't affect the result in any meaningful way. What it does do here is effect the if evaluation. By performing the math operations, the > operator works properly. It's converted to MB for the convenience of the human reading the log message. Is that what you have a problem with?